Skip to content

Conversation

@thowell
Copy link
Collaborator

@thowell thowell commented Jan 6, 2026

apply zero force to a body that has (very) small mass. this prevents division with a (very) small number than can lead to nans.

mujoco reference https://github.com/google-deepmind/mujoco/blob/fa044fe0e53d728a0a242bcb5d2a5c7c2c4f4551/src/engine/engine_passive.c#L517

resolves #930

@thowell thowell merged commit dc50a56 into google-deepmind:main Jan 6, 2026
7 checks passed
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.

warp backend causes physics to go to nan

2 participants