This command will set the sleep state of the specified world. When a world is set to sleep, bodies in the world will stop moving if the forces acting on them are not enough to overcome their inertia, preventing random twitching. A value of 1 sets the world to sleep, a value of 0 turns sleep off. The ID should be the unique integer handle that was returned when the world was created.
Syntax
b2SetWorldSleep ID as Integer, doSleep as Dword