> For the complete documentation index, see [llms.txt](https://docs.engagevr.io/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.engagevr.io/developer/creating-locations/adding-grabable-objects-to-a-location/resetting-network-objects-when-out-of-bounds.md).

# Resetting network objects when out of bounds

You can configure network objects to reset if they leave a defined region. For example, you could configure tennis balls to return to a rack if they move outside the bounds of a tennis court.

You use a game object to define the boundary within which specified network objects must remain. Specifically, it is the [bounds of the object's collider](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Collider-bounds.html) that defines the permissible region. We recommend that you use a Box Collider component so that you see an accurate representation of the boundary in the Unity editor.

{% hint style="warning" %}
Set the boundary game object's Layer to `20: NoCollision`. This will allow the user to walk through the boundary.
{% endhint %}

On another game object, add a `Network Object Respawn Manager` script component, and then add references to both boundary game object and the network objects that you want to restrict.

{% hint style="warning" %}
Ensure that each network object can achieve a stable position within the boundary. When a game object moves outside of the permissible region, it resets to the first stable position and rotation that it achieved after the scene loaded. If a network object falls and rolls when it loads, its first stable position may be outside the boundary. This would effectively make it ungrabbable.
{% endhint %}

The following diagram shows an example of how to arrange the components for a single network object in Unity, and the required references.

<figure><img src="https://2640392766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5yxYHsXtlAaoMUrDWhLm%2Fuploads%2Fgit-blob-1c4a6133b8d69b98a5eeed631d4b6a64ebbccd62%2Fnet_obj_reset_bound_overview.png?alt=media" alt=""><figcaption><p>Example use of the NetworkObjectRespawnManager</p></figcaption></figure>
