Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NaN due to division by zero #4441

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhutq
Copy link

@zhutq zhutq commented Apr 4, 2023

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.

Fix NaN due to division by zero
@zhutq
Copy link
Author

zhutq commented May 8, 2023

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!

@SirNate0
Copy link

SirNate0 commented Jan 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants