NewtonBodyGetSleepState
NewtonBodyGetSleepState
int NewtonBodyGetSleepState(const NewtonBody* bodyPtr)
Usage
Return the sleep state of a rigid body.
Parameters
- const NewtonBody *bodyPtr - is the pointer to the body.
Return
- state: 1 = the body is sleeping [equilibrium]. 0 = the body is not sleeping [not in equilibrium OR Autosleep is off].
Remarks
SleepSate and FreezeState are different state. A Frozen body can be awake.
See also
NewtonBodyGetAutoSleep NewtonBodySetAutoSleep NewtonBodyGetFreezeState NewtonBodySetFreezeState