B2ENABLEBODYROTATION

This command will set the specified body to rotate or not to rotate.  The BodyID should be the integer handle of the body to be set, which was returned when it was created.  The Enable value should be either 1 or 0 - a value of 1 will allow the body to rotate freely, while a value of 0 will lock the body's rotation.

 

Syntax

b2EnableBodyRotation BodyID as Integer, Enable as Dword

Related Information

BOX2D Commands Menu
Index