crashcat docs
    Preparing search index...

    Function destroyAllContactsBetweenBodies

    • Destroy all contacts between two bodies (used for unprocessed contacts). More efficient than destroyStaleContactsBetweenBodies when we know ALL contacts 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