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:15:24 +02:00
parent 488aad0af3
commit 8d15ceab2a

View File

@@ -397,7 +397,7 @@ impl NarrowPhase {
// NOTE: we use `get` because the collider may no longer // NOTE: we use `get` because the collider may no longer
// exist if it has been removed. // exist if it has been removed.
if let Some(co) = colliders.get(*handle) { 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. // No flag relevant to the narrow-phase is enabled for this collider.
continue; continue;
} }