NewtonBodyGetSleepState

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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