Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Trigger events for non-dynamic entities

Discussion in 'Physics for ECS' started by GaryT_01000111, Dec 16, 2019.

  1. GaryT_01000111

    GaryT_01000111

    Joined:
    Aug 4, 2017
    Posts:
    13
    I was wondering if trigger events work with non-dynamic (without PhysicsVelocity) entities. Thanks.
     
    Last edited: Dec 16, 2019
  2. Rory_Havok

    Rory_Havok

    Joined:
    Jun 25, 2018
    Posts:
    70
    Trigger events require at least one of a pair of colliding bodies have a PhysicsVelocity. This is because the physics step does nothing at all for static vs static pairs - the broadphase does not report them as overlaps, by design.

    The recommmendation is to make your triggers kinematic (PhysicsVelocity = 0, no PhysicsMass), so that they do detect overlaps with static bodies but are not moved by the physics step.