-
Notifications
You must be signed in to change notification settings - Fork 264
-
Notifications
You must be signed in to change notification settings - Fork 264
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
c2TOI returning wrong contact point #357
Comments
ramirez7
changed the title
c2Toi returning wrong contact point
c2TOI returning wrong contact point
Aug 1, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I originally brought this up on Discord a while back, but I figured I'd copy it to the issue tracker:
so I'm using the new
c2TOI
(which returns ac2TOIResult
) and the value forp
(the contact point) isn't making sense to me. The example I'm doing is testing a stationary AABB and a moving circle.The only values I'm getting for the
p
seem to be the AABB's min/max.(sorry for the Haskell syntax - I'm testing this in the repl)
In my head, I would expect the first one to collide at (50, 100). And the second, I expect it to collide at (25, 0)
Here's a hand-drawn illustration of expectations vs reality. I marked the p I got in red. And I marked a point e which is what I expected:
I've also rigged up a C repro in a MR in my Haskell bindings repository. I did it in the same form as this gist.
(Note that I'm using a copy of
cute_c2.h
in-tree)The text was updated successfully, but these errors were encountered: