Causes for velocities, torque being reset to zero?

Oct 14, 2010 at 1:34 AM

I seem to have this happen pretty often with my increasingly complex rag dolls: they will suddenly "freeze" in the air, ignoring any forces, impulses, etc I apply to them.  In the past, it was because I accidentally had an Integrate with a time step of zero upon loading the game.  I could see that it was calculating velocities of NaN as a result and that is how I found the problem.  I included an if statement to not Integrate if the time step is zero.

This time around I am not seeing any NaNs, just everything is zeroed out.  Do you have any ideas of what may set all velocities, torque, etc to be zero?  It definitely seems to be something with joints.  I recently added a weapon to my ragdoll's hand, which he is supposed to fall with, and that's the only time I see this happening.  It's a revolute joint.

Thanks for all the help you've been giving me!

Coordinator
Oct 14, 2010 at 2:04 AM

I'm afraid I haven't seen this before, but if you can come up with a simple repro that I can paste into the sample app, i'll try to figure it out.