This simple mechanism controls the Rigidbody on the same GameObject. On activate, the script turns off the isKinematic property and allows the physics engine to apply gravity to this object.

  • Play Mode: determines if the trap should activate once, or loop.

  • 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.

  • Effects: Add or remove Particle effects handlers and Audio handler here, and control their behavior based on the events.

Last updated