Merge pull request #320 from dimforge/narrow-phase-contact-recompute-fix

Fix bug where the narrow-phase would not recompute contacts after a collider change
This commit is contained in:
Sébastien Crozet
2022-04-29 19:19:08 +02:00
committed by GitHub

View File

@@ -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;
}