BSETUNITS

This command will set the position and angle units for all worlds.  By default, the units are set to metres and radians, so you will usually want to set the units to the standard system used in DarkBASIC:

b2SetUnits 10,-0.017453292519943295769236907684886

You should do this BEFORE using any other Box2D commands.

 

Syntax

b2SetUnits Position as Float, Angle as Float


Related Information

BOX2D Commands Menu
Index