-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Improve convergence of epa algorithm in case it's stuck #245
Conversation
Thanks! I'd like to add a test for this scenario, would a setup like dimforge/rapier#531 be the correct candidate ? |
Sure, thats what I used locally. I didn't put the effort to migrate that sample to the parry repo, but probably that would be next step. |
* attempt to make a test for epa convergence hanging * fix capsule height to be like original bug report * exact same parameters as original bug + adapt test
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.
Looks good, thanks!
🎉 yay! I'd like to add a changelog line before merging though |
Improves converges by checking if it's stuck. In such a case return a result, as a better solution will not be found, and most likely they are intersecting but not within the EPS.
Also decrease max iterations from 10000 to 100. It usually converges in 4-5 iterations, no need to ever do as many. Also we never really want a precision that big, we are ok with a lower precision most times.
Possibly fixes: