dimforge / rapier

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

add bug #531

Closed Ughuuu closed 3 months ago

Ughuuu commented 9 months ago

Made a PR so you can view the bug I am experiencing. Here is the image of how the example looks like:

image

What is happening here, I am calling the parry::query::contact and getting No collision, even though the shapes are obviously colliding.

From my investigation, the code goes to epa2.rs

And then it stops at:

if niter > 10000 {
    return None;
}

It seems to be adding the same face over and over 1000 times to the heap and removing it, and then it stops.

Ughuuu commented 8 months ago

In the end bug only happens with capsule. So I ended up making the capsule from 2 circles and 1 square.