Difference between revisions of "NewtonBodyGetSleepState"
m (1 revision imported) |
|
(No difference)
|
Latest revision as of 08:02, 10 June 2019
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