crashcat docs
    Preparing search index...

    Function packContactKey

    • Pack a contact ID and edge index into a single integer key. Layout: [contactId: 31 bits][edgeIndex: 1 bit]

      Parameters

      • contactId: number

        The contact ID (0 to 2^31-1)

      • edgeIndex: 0 | 1

        Which edge (0 for bodyA, 1 for bodyB)

      Returns number

      Packed integer key