From Newton Wiki
Jump to: navigation, search


API int NewtonBodyGetFreezeState(const NewtonBody* body);


Get the Freeze state of the body.


  • const NewtonBody *bodyPtr - is the pointer to the body.


  • int - Tells you, if the body is in Freeze state.


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