fix(physics): guard against division by zero in point gravity #144
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
OragonEfreet/banjo!144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/physics-division-by-zero"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add checks for zero inverse_mass (infinite mass) before computing
gravitational force. Particles with infinite mass should not have
gravity forces applied to them, and division by zero inverse_mass
would cause undefined behavior.
Affects: