Skip to content

Conversation

@Ughuuu
Copy link
Contributor

@Ughuuu Ughuuu commented Jul 27, 2024

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:

@Ughuuu
Copy link
Contributor Author

Ughuuu commented Jul 27, 2024

With this fix it actually returns a contact (didn't know how to draw the intersection better):

image

Also it does so in 5 iterations and returns a collision, instead of doing 10000 iterations and returning None.

@Ughuuu Ughuuu marked this pull request as ready for review July 27, 2024 16:26
@ThierryBerger
Copy link
Contributor

Thanks! I'd like to add a test for this scenario, would a setup like dimforge/rapier#531 be the correct candidate ?

@ThierryBerger ThierryBerger added the C-Bug Something isn't working label Jul 29, 2024
@Ughuuu
Copy link
Contributor Author

Ughuuu commented Jul 29, 2024

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
@ThierryBerger ThierryBerger requested a review from sebcrozet August 2, 2024 14:27
Copy link
Member

@sebcrozet sebcrozet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@ThierryBerger
Copy link
Contributor

🎉 yay! I'd like to add a changelog line before merging though

@ThierryBerger ThierryBerger merged commit 837291f into dimforge:master Aug 12, 2024
@Ughuuu Ughuuu deleted the custom-changes branch October 11, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EPA convergence failure on capsules

3 participants