← Documentation Home

PhysicsCollisionBodyB

Category: 2D Game Physics (Pro)

Back to System Functions


Signature

PhysicsCollisionBodyB(world As Integer, index As Integer)

Returns

Integer

Description

Returns the second 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

bodyB = PhysicsCollisionBodyB(world, i)