crashcat docs
    Preparing search index...

    Function createContact

    • Create a new contact between two bodies. Links the contact into both bodies' contact lists.

      Parameters

      • contacts: Contacts

        global contact array

      • bodyA: RigidBody

        first body (must have id <= bodyB.id)

      • bodyB: RigidBody

        second body (must have id >= bodyA.id)

      • subShapeIdA: number

        sub-shape ID for body A

      • subShapeIdB: number

        sub-shape ID for body B

      Returns Contact

      The newly created contact