in Original a body Newton never freezes in the air, I do not know why you are getting that.
you should no for bodied to freeze state by hand and expect the engine behave the way you think is would do.
Freeze state freezes an entire set of o dynamics bodies that are connected by joints.
In newton when a body touches any other body the entire island become awaken because of eth rule that a alive body is also the or combination of all alive bodies on a contraction.
a body reach equilibrium when it acceleration and it velocity is below a small threshold, or when the
velocity is low but the acceleration is oscillating between tow small values for a period of time, a boby should never freeze on a state that is not in equilibrium, like when a body is in mid air because it acceleration will always be large.
I am not sure why you get these problems, auto sleep should handle these situation automatically
if you want to single out a body of a group of body form the simulation (hiding)
you need to use a different set of function
- Code: Select all
void NewtonBodyEnableSimulation(const NewtonBody* const body);
void NewtonBodyDisableSimulation(const NewtonBody* const body);