Documentation
    Preparing search index...

    Interface TriggerEvent<TBody, TCollider>

    Something entered or left a sensor (§29, §24).

    A sensor reports overlaps but exerts no forces (Appendix B), so there is no manifold, no impulse, and no relative velocity to report — which is why this is a separate payload rather than a collision event with empty fields.

    The pair is asymmetric by construction: TriggerEvent.sensor is the collider whose sensor flag is set. When two sensors overlap, an adapter reports the pair twice, once from each side, so a listener on either sensor sees its own event.

    interface TriggerEvent<
        TBody = PhysicsBodyHandle,
        TCollider = PhysicsColliderHandle,
    > {
        other: TCollider;
        otherBody: TBody;
        sensor: TCollider;
        sensorBody: TBody;
        type: TriggerPhase;
    }

    Type Parameters

    Index
    other: TCollider

    The collider that entered or left the sensor.

    otherBody: TBody

    The body owning TriggerEvent.other.

    sensor: TCollider

    The sensor collider that fired.

    sensorBody: TBody

    The body owning TriggerEvent.sensor.

    Which of §29's two trigger names this is.