# Physics (Collision Detection)

**Collision Detection** has been added to enhance modular or spatial configuration experiences so that objects either cannot intersect or to warn the user that objects intersect.

![](/files/aVqPvWfdOzT9YJ0jWN3h)

To add Collision Detection to your modular or spatial configurators, you will need to add Collision to your Layout Containers and the individual objects you'd like collision physics to impact.

First, add the new **Collision Settings** operator to your Layout Container:

![](/files/0jfnB5APkWF5bMqvB6gG)

There are two Collision Setting Modes.&#x20;

* Collision Detection - lets the user know that objects have collided through highlighting but does not prevent it.<br>

  <figure><img src="/files/h8rJ7JxqVGt8XHmSzcZV" alt=""><figcaption></figcaption></figure>
* Prevent Collision - prevents objects from intersecting <br>

  <figure><img src="/files/bJ8P9CxUWT1FHH00Ccck" alt=""><figcaption></figcaption></figure>

***Note:** you should lock the translation so that objects don't "jump" when they collide and stay fixed to the surface you've selected in your layout container.*

Next, for each object the Layout Container is affecting that you'd like Collision physics to apply to, you'll need to add the new **Physics Plug**:

![](/files/lkvg3VFKogOvSKlQuYjg)

Then, you will need to add the **Collider operator** in the Physics section of the Properties panel:

![](/files/eVk137rPc90fpcwNjjBp)

Finally, you can set the collision detection accuracy:

![](/files/PPKVMSVseCNdJ1fmZoXS)

* Bounding Box - the most performant setting but least conforming to non-rectangular shapes
* Reduced Hull (Default) - approximates the shape of your object while remaining performant
* Exact Hull - uses the exact shape of the object but can create performance issues for complex objects and scenes\\

{% hint style="info" %}
***Note:** to enable Collision Detection client side, you'll need to load the required, separate library:*&#x20;
{% endhint %}

```
 <script src="https://[environment]/app/js/threekit-packs-physics.js"></script>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://community.threekit.com/platform-documentation/catalog-2.0-docs/project-data/operators/polymesh-operators/physics-collision-detection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
