dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.77k stars 235 forks source link

Feature Request: Ghost Collision Handling #669

Open Ughuuu opened 6 days ago

Ughuuu commented 6 days ago

Right now, for 2D there can appear ghost collision between static polygons and circles for eg. It would be nice if there was a way to handle these. Box2D has the following post of how they solve this: https://box2d.org/posts/2020/06/ghost-collisions/

There is also this other post of how to solve this: http://briansemrau.github.io/dealing-with-ghost-collisions/

The first uses a technique that requires a new type of shape/data for it.

The second seems to be a simple callback for handling this.