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

Do not call C++ with positions, velocities or angular velocities that are NaNs. #2532

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

pleroy
Copy link
Member

@pleroy pleroy commented Apr 16, 2020

It seems that in some cases (maybe when a part is about to be destroyed) KSP gives us NaNs in the positions, velocities, angular velocities, forces and torques. This change filters out such parts early in the C# code, as if they had no rigid body.

The alternative of letting NaNs enter the C++ code would be a nightmare because they would fail every single CHECK.

Will hopefully fix #2530.

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

Successfully merging this pull request may close these issues.

Principia crash when decoupling with msg Check failed: 0 <= r (0 vs. -1)
2 participants