B2GETBODYANGLE

This command will return the angle of the specified body.  The parameter should be the integer handle of the body to be measured, which was returned when it was created.

Note that, by default, the units are set to metres and radians.  Therefore, you could get some interesting results unless you use b2SetUnits in the beginning of your program.

 

Syntax

Return as Float = b2GetBodyAngle(ID as Integer)


Related Information

BOX2D Commands Menu
Index