dimforge / parry

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

Non-uniform scale applied to Ball Collider ignores its own radius #87

Closed Gyrobifastigium closed 2 years ago

Gyrobifastigium commented 2 years ago

https://github.com/dimforge/parry/blob/c3f28389e762cf93d8a1a62337fb806450852017/src/shape/ball.rs#L40

This line should be self.to_polyline(nsubdivs) instead of Self::new(0.5).to_polyline(nsubdivs).