crashcat docs
    Preparing search index...

    Function destroyContact

    • Destroy a contact, unlinking it from both bodies' contact lists. Returns the contact to the free list for reuse.

      Parameters

      • contacts: Contacts

        global contact array

      • bodyA: RigidBody

        first body in contact

      • bodyB: RigidBody

        second body in contact

      • contact: Contact

        contact to destroy

      • listener: Listener | undefined

        optional contact listener to notify of removal

      Returns void