Documentation
    Preparing search index...

    Interface DebugPhysicsEventLike

    What the providers accept: anything with a type, which covers the whole PhysicsEvent union (CollisionEvent, TriggerEvent, SleepEvent, JointBreakEvent) so world.queuedEvents can be passed straight in. Entries without a contact manifold are skipped.

    interface DebugPhysicsEventLike {
        contacts?: readonly DebugContactPoint[];
        type: string;
    }
    Index
    contacts?: readonly DebugContactPoint[]

    The manifold, when the event has one. Optional rather than absent so that a caller can hand over a heterogeneous array without casting, and so a CollisionEvent and a TriggerEvent are both assignable; the providers still check it at runtime (DebugCollisionEventLike is the narrowed form).

    type: string