-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Incorrect Qvbh time_of_impact results #107
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've been trying to track down an issue for a while in my game where the character "glitches" into walls while sliding against them. I'm using a time-of-impact query via
Qbvh
. It seemed to happen relatively consistently in roughly the same spots, so I collected position and velocity traces and came up with the following case that seems to 100% reproduce the issue. It appears theQbvh
TOI query inexplicably returns no intersections in cases where it definitely should.Consider the following minimum reproducible example:
As commented in the code, the above code results in the following console output:
We get the expected results when invoking
DefaultQueryDispatcher::time_of_impact()
directly, but get no results when callingbvh.traverse_best_first(TOICompositeShapeShapeBestFirstVisitor)
with the same data. However, if we tweak the ball's position slightly, we get the expected result in both cases:We then get the following output:
My
Cargo.toml
hasThe text was updated successfully, but these errors were encountered: