BodyCollisionOther
Category: 2D Game Physics (Pro)
Signature
BodyCollisionOther(body As Integer, index As Integer)
Returns
Integer
Description
Returns the other body handle for one of this body's current contacts.
Performance and behavior
The index is zero-based. Returns 0 for an invalid body or index. Results describe the most recent physics step.
Pro feature: requires GamePhysics.
Example
other = BodyCollisionOther(player, 0)