-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add shapecast example + loosen gjk epsilon #298
base: master
Are you sure you want to change the base?
Conversation
pub fn eps_tol() -> Real { | ||
let _eps = crate::math::DEFAULT_EPSILON; | ||
_eps * 10.0 | ||
_eps * 10_000.0 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a huge fan of increasing epsilons arbitrarily, but that improves the example added in this PR.
I think exposing this value would be more interesting, and I'd like to have a test stressing false positive, where a high epsilon results in an incorrect result 🤔 (or performance overhead, I'm not sure)
[ | ||
[600.0, 288.0].into(), | ||
[576.0, 312.0].into(), | ||
[552.0, 288.0].into(), | ||
[576.0, 264.0].into(), | ||
] | ||
.into(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check if that works on a centered shape.
Following discussion on discord, a shape cast of a ball sometimes fails when it should not.
time_of_impact_support_map_support_map
returnsNone
when it shouldn't with very specific inputs #180Before this PR:
After this PR: