PhysicsCollisionBodyA
Category: 2D Game Physics (Pro)
Signature
PhysicsCollisionBodyA(world As Integer, index As Integer)
Returns
Integer
Description
Returns the first body handle in a recorded collision pair.
Performance and behavior
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.
Example
bodyA = PhysicsCollisionBodyA(world, i)