Skip to content
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 narrow_phase collisions after using ColliderSet::set_parent #742

Merged
merged 10 commits into from
Feb 2, 2025

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Sep 26, 2024

This PR adds 2 tests: 1 for each scenario.

src/geometry/narrow_phase.rs Outdated Show resolved Hide resolved
src/geometry/narrow_phase.rs Outdated Show resolved Hide resolved
src/geometry/narrow_phase.rs Outdated Show resolved Hide resolved
@Vrixyz Vrixyz marked this pull request as draft November 6, 2024 16:22
@Vrixyz Vrixyz marked this pull request as ready for review December 16, 2024 13:23
@Vrixyz Vrixyz requested a review from sebcrozet December 16, 2024 13:23
@Vrixyz Vrixyz force-pushed the 734-reparent_bug_in_narrow_phase branch from 04bb2e1 to 41feb21 Compare December 16, 2024 13:27
CHANGELOG.md Outdated Show resolved Hide resolved
@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