-
Notifications
You must be signed in to change notification settings - Fork 0
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
False positives can appear #1
Labels
Comments
zaidan
added a commit
that referenced
this issue
Mar 24, 2020
`d1` with y = `0.0` results in false positves, use `-1.0` instead.
zaidan
added a commit
that referenced
this issue
Mar 24, 2020
`d1` with y = `0.0` results in false positves, use `-1.0` instead.
@walseb thx, for finding this bug. The bug was caused by using y = |
zaidan
added a commit
to zaidan/elm-collision
that referenced
this issue
Mar 24, 2020
This was referenced Mar 24, 2020
Wow thanks for fixing this so quickly! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These are two identical convex boxes a long distance from each other and yet
collision
returnsJust True
:(It becomes easier to read with word-wrap on)
From my testing it seems as if you have one very high precision (
double
) convex box and compare that against another one with integer precision (both are using the same datatype), false-positives can appear:As you can see, simply adding zeroes to the second box won't fix it, but adding something trivial like
0000000000001
seems to. Also if you look at the last prompt, removing the decimals from the first cube makes it work properly again, so it has something to do with the precisionMaybe this is just a inherent problem of the algorithm? I haven't looked into it or tried this with other GJK packages.
The text was updated successfully, but these errors were encountered: