Skip to content

Commit

Permalink
Merge pull request dimforge#320 from dimforge/narrow-phase-contact-re…
Browse files Browse the repository at this point in the history
…compute-fix

Fix bug where the narrow-phase would not recompute contacts after a collider change
  • Loading branch information
sebcrozet authored Apr 29, 2022
2 parents 488aad0 + 8d15cea commit 4236027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geometry/narrow_phase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ impl NarrowPhase {
// NOTE: we use `get` because the collider may no longer
// exist if it has been removed.
if let Some(co) = colliders.get(*handle) {
if co.changes.needs_narrow_phase_update() {
if !co.changes.needs_narrow_phase_update() {
// No flag relevant to the narrow-phase is enabled for this collider.
continue;
}
Expand Down

0 comments on commit 4236027

Please sign in to comment.