crashcat docs
    Preparing search index...

    Function destroyStaleContactsBetweenBodies

    • Destroy stale contacts (those not processed this frame) between two bodies.

      After narrowphase processes a body pair, any contacts that weren't marked as processed are stale (sub-shapes no longer colliding) and should be destroyed.

      Parameters

      • contactsState: Contacts

        contacts state

      • bodyA: RigidBody

        first body

      • bodyB: RigidBody

        second body

      • listener: Listener | undefined

        optional contact listener to notify of removal

      Returns void