Fix bug where the narrow-phase would not recompute contacts after a collider change
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user