dimforge / parry

2D and 3D collision-detection library for Rust.
https://parry.rs
Apache License 2.0
528 stars 93 forks source link

fix: remove threshold in angular inertia eigenvalue calculation #209

Closed sebcrozet closed 1 week ago

sebcrozet commented 1 week ago

Some users hit cases where the threshold resulted in a zero inverse inertia tensor for life-sized thin objects. This PR removes the threshold and only clamp the negative principal inertia values.