MADEAPPS / newton-dynamics

Newton Dynamics is an integrated solution for real time simulation of physics environments.
http://www.newtondynamics.com
Other
928 stars 183 forks source link

Kinematic controller joint triggers assert when target rotation is 180 degrees away (3.14) #321

Open UltraEngine opened 10 months ago

UltraEngine commented 10 months ago

It seems that the custom kinematic controller hits an assert you set the joint target rotation 180 degrees away from the current orientation:

dAssert(lateralDir.DotProduct3(lateralDir) > 1.0e-6f);

I guess this is because the solver does not know which way to turn? Do you have any suggestions on how to handle this in a user-friendly way?

First reported here: https://www.ultraengine.com/community/topic/62173-kinematic-joint-error-message/