Skip to content

Comments

Incorrect narrow_phase collisions after using ColliderSet::set_parent#742

Merged
sebcrozet merged 10 commits intodimforge:masterfrom
ThierryBerger:734-reparent_bug_in_narrow_phase
Feb 2, 2025
Merged

Incorrect narrow_phase collisions after using ColliderSet::set_parent#742
sebcrozet merged 10 commits intodimforge:masterfrom
ThierryBerger:734-reparent_bug_in_narrow_phase

Conversation

@ThierryBerger
Copy link
Contributor

@ThierryBerger ThierryBerger commented Sep 26, 2024

This PR adds 2 tests: 1 for each scenario.

@ThierryBerger ThierryBerger marked this pull request as draft November 6, 2024 16:22
@ThierryBerger ThierryBerger marked this pull request as ready for review December 16, 2024 13:23
@ThierryBerger ThierryBerger force-pushed the 734-reparent_bug_in_narrow_phase branch from 04bb2e1 to 41feb21 Compare December 16, 2024 13:27
@sebcrozet sebcrozet force-pushed the 734-reparent_bug_in_narrow_phase branch from b00e486 to 7388fdf Compare February 2, 2025 13:28
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! I took the liberty of making the following changes:

  • Removed debug print statements.
  • Changed the test a bit to test two consecutive reparenting.
  • Don’t rewove the pairs from the graph upon reparenting. I believe this isn’t needed because the collision information will be automatically cleared by the contact/intersection update function if needed.

@sebcrozet sebcrozet merged commit bf8e48e into dimforge:master Feb 2, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants