NewtonBodyGetFreezeState
NewtonBodyGetFreezeState
API int NewtonBodyGetFreezeState(const NewtonBody* body);
Usage
Get the Freeze state of the body.
Parameters
- const NewtonBody *bodyPtr - is the pointer to the body.
Return
- int - Tells you, if the body is in Freeze state.
Description
- When a body is created it is automatically placed in the active simulation list. As an optimization
- for large scenes, you may use this function to put background bodies in an inactive equilibrium state.
- This function tells Newton that this body does not currently need to be simulated.
- However, if the body is part of a larger configuration it may be affected indirectly by the reaction forces
- of objects that it is connected to.
See also
NewtonBodyGetSleepState NewtonBodyGetAutoSleep NewtonBodySetAutoSleep NewtonBodySetFreezeState