# Physics

![](/files/-MW55YGHA2GQjeR3ELoN)

This simple mechanism controls the [Rigidbody](https://docs.unity3d.com/Manual/class-Rigidbody.html) on the same GameObject. On activate, the script turns off the *isKinematic* property and allows the physics engine to apply gravity to this object.

![](/files/-MVvDYzQyK3OZ_J75LzF)

* **Play Mode:** determines if the trap should activate once, or loop.&#x20;
* **Cooldown:** how long (in seconds) before the trap can be activated again.
* **Reset on Finish:** This only available in Only Once play mode. After the simulation ended, the script resets the game object position and rotation. In loop mode, this is automatically happening after every sequence.
* **Duration:** how long the physics simulation should happen.&#x20;
* **Effects:** Add or remove [Particle effects handlers](https://app.gitbook.com/@runemarkstudio/s/deadly-dungeons/~/drafts/-MVv5Wz9S1GutR_VLVPo/traps/effect-handlers/particle-handler) and [Audio handler](https://app.gitbook.com/@runemarkstudio/s/deadly-dungeons/~/drafts/-MVv5Wz9S1GutR_VLVPo/traps/effect-handlers/audio-handler) here, and control their behavior based on the events.


---

# 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://traps.runemarkstudio.com/traps/trap-mechanism/physics.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.
