BodyVelocityY
Category: 2D Game Physics (Pro)
Signature
BodyVelocityY(body As Integer)
Returns
Double
Description
Returns the body's vertical velocity in pixels per second.
Performance and behavior
Invalid handles return 0.
Pro feature: compiling code that uses this function requires a license with the GamePhysics feature enabled.
Example
If BodyIsColliding(player) Then DebugPrint Str(BodyVelocityY(player))