GetSpritePhysicsCOMY

Description

Returns the Y value of current Center Of Mass for the given sprite's physics body. All shapes currently added to this sprite contribute to this value. If you have set the center of mass manually then it will return that value. Physics must be turned on for this sprite for the command to work, otherwise it will return 0.

Definition

float GetSpritePhysicsCOMY( iSpriteIndex )

Parameters