Category: 2D Game Physics (Pro)
BodyCollisionCount(body As Integer)
Integer
Returns the number of bodies touching this body during the most recent physics step.
Contacts are zero-based when read with BodyCollisionOther. Invalid handles return 0.
Pro feature: requires GamePhysics.
If BodyCollisionCount(player) > 0 Then grounded = True