crashcat docs
    Preparing search index...

    Function destroyStaleContactsInPair

    • Destroy stale contacts (lastProcessedFrame !== frameStamp) in a pair record's chain.

      After narrowphase processes an emitted pair, any chain contacts not re-stamped this frame are stale (sub-shapes no longer colliding) and are destroyed. The chain IS the pair, so no body-id filtering is needed.

      Parameters

      • contacts: Contacts

        global contact state

      • pairs: Pairs

        persistent pair state (holds the per-record chain heads)

      • rec: number

        pair record index whose chain should be reconciled

      • listener: Listener | undefined

        optional contact listener to notify of removal

      Returns void