📚
Deadly Dungeons
  • Initial page
  • Traps
    • Introduction
    • Trap Triggers
    • Raycast Triggers
    • Disabling Traps with Triggers
    • Trap
    • Trap Mechanism
      • Animator
      • Launcher
      • Particle (Trap Mechanism)
      • Physics
    • Effect Handlers
      • Audio Handler
      • Particle (Effect Handler)
      • Ray Handler
      • Custom Effect Handler
    • Damage System
      • Damage Source
      • IDamageable
      • Damage Result
    • Damageable Example
    • Utility
      • AutoConnect Joint
      • Texture Mover
Powered by GitBook
On this page

Was this helpful?

  1. Traps
  2. Trap Mechanism

Physics

PreviousParticle (Trap Mechanism)NextEffect Handlers

Last updated 4 years ago

Was this helpful?

This simple mechanism controls the 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 and here, and control their behavior based on the events.

Particle effects handlers
Audio handler
Rigidbody