bullet3 icon indicating copy to clipboard operation
bullet3 copied to clipboard

Fix NaN due to division by zero

Open zhutq opened this issue 1 year ago • 2 comments

I encountered NaN when simulating with a kinematic rigid body, one dynamic rigid body, and one rope anchored between them. It was solved by avoiding division-by-zero when computing solverConstraint.m_jacDiagABInv.

zhutq avatar Apr 04 '23 10:04 zhutq

Hello @erwincoumans ! Would you kindly review this PR? If there are any concerns or comments, I would greatly appreciate your input and am happy to address them. Thank you very much for your time and consideration!

zhutq avatar May 08 '23 07:05 zhutq

I would also appreciate clarification on this, as I also ran into this NaN when trying to use a fixed point type for btScalar, and I'm not certain what the proper behavior is supposed to be.

SirNate0 avatar Jan 02 '24 21:01 SirNate0