B2GETBODYY

This command will return the Y position of the specified body.  The position is in relation to the standard 2D coordinates - (0,0) being the top-left corner of the screen, and the Y position increasing as you go down the screen.  The parameter should be the integer handle of the body to be located.

 

Syntax

Return as Float = b2GetBodyY(ID as Integer)

Related Information

BOX2D Commands Menu
Index