From b614b3de5ed388ae0d848f00cc026b1c222584a3 Mon Sep 17 00:00:00 2001 From: Robert Hrusecky Date: Tue, 6 Oct 2020 02:14:18 -0500 Subject: Fix edge case --- src/geometry/broad_phase_multi_sap.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/geometry/broad_phase_multi_sap.rs b/src/geometry/broad_phase_multi_sap.rs index 84e05d9..bb30e14 100644 --- a/src/geometry/broad_phase_multi_sap.rs +++ b/src/geometry/broad_phase_multi_sap.rs @@ -377,6 +377,10 @@ impl SAPRegion { } self.axii[0].batch_insert(0, &self.to_insert, proxies, Some(reporting)); self.to_insert.clear(); + + // In the rare event that all proxies leave this region in the next step, we need an + // update to remove them. + self.update_count = 1; } } } -- cgit