Category: 2D Game Physics (Pro)
PhysicsCollisionBodyB(world As Integer, index As Integer)
Integer
Returns the second body handle in a recorded collision pair.
Returns 0 when the world or zero-based index is invalid.
Pro feature: compiling code that uses this function requires a license with the GamePhysics feature enabled.
bodyB = PhysicsCollisionBodyB(world, i)