-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent results from collide_with_motion_and_get_contacts
#262
Comments
I think this is actually a parry bug: |
Seems to be related to the epsilon value used in minowski sum (the |
I think this will have to be fixed upstream - there doesn't appear to be a way to configure this value |
Yes, of course, the upstream will have to allow the library user to configure that value. Doesn't seem like complicated change but will need to be tested that it indeed fixes this. |
Sure enough, multiplying the value by 100 instead of 10 fixes this. I wonder though if this would affect accuracy for 3d case though. Will leave it like this for now on both 2d and 3d, but at some point I might want to do a PR in rapier to have it configurable from rapier. |
https://github.com/Ughuuu/parry/pull/3/files#diff-ba19e4deda422123fcd9962ec1c1f38c05f409e025ebad604e38d8f1c37700e4R38 diff with change that fixes this. |
Describe the bug
There are some cases where
intersect_shape
will find a shape but an equivalent call withcollide_with_motion_and_get_contacts
(akashape_collide
) won't.To Reproduce
Steps to reproduce the behavior:
intersect_shape
querycollide_with_motion_and_get_contacts
against each shape with the same parameters asintersect_shape
Expected behavior
Contacts found with
collide_with_motion_and_get_contacts
are consistent over time.Environment:
Example project(zip)
mrp-collide-and-get-contacts.zip
The text was updated successfully, but these errors were encountered: