Pack a contact ID and edge index into a single integer key. Layout: [contactId: 31 bits][edgeIndex: 1 bit]
The contact ID (0 to 2^31-1)
Which edge (0 for bodyA, 1 for bodyB)
Packed integer key
Pack a contact ID and edge index into a single integer key. Layout: [contactId: 31 bits][edgeIndex: 1 bit]