Category: 2D Game Physics (Pro)
BodyIsColliding(body As Integer)
Boolean
Returns True when the body touched another body during the most recent physics step.
This is convenient for grounded and impact checks. Use BodyCollisionCount and BodyCollisionOther when the identity of the other body matters.
Pro feature: compiling code that uses this function requires a license with the GamePhysics feature enabled.
If BodyIsColliding(player) Then grounded = True