B2GETBODYANGULARVELOCITY

This command will return the angular velocity of the specified body.  The angular velocity affects the body's rotation and can be set using b2SetBodyAngularVelocity.  The ID should be the integer handle that was returned when the body was created.

 

Syntax

Return as Float = b2GetBodyAngularVelocity(ID as Integer)

Related Information

BOX2D Commands Menu
Index