dimforge / parry

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

Fix ball-convex manifolds missing contacts in corner cases #148

Closed Ralith closed 9 months ago

Ralith commented 11 months ago

When a ball's origin lay directly on a surface, no contact was found. While the contact normal is ambiguous in this case, we can make up something plausible.

This was causing me considerable confusion in some unit tests, where trivially intersecting ball-triangle tests were failing with contact manifolds.

sebcrozet commented 9 months ago

Thanks!