diff options
| author | Robert Hrusecky <robert.hrusecky@utexas.edu> | 2020-10-06 02:14:18 -0500 |
|---|---|---|
| committer | Robert Hrusecky <robert.hrusecky@utexas.edu> | 2020-10-06 02:14:18 -0500 |
| commit | b614b3de5ed388ae0d848f00cc026b1c222584a3 (patch) | |
| tree | 30b90ab02fa1a287a17aa3a1780a38c198af9ff2 /src | |
| parent | c25c5c5192d843d96d300aa3c4d711a43f709c54 (diff) | |
| download | rapier-b614b3de5ed388ae0d848f00cc026b1c222584a3.tar.gz rapier-b614b3de5ed388ae0d848f00cc026b1c222584a3.tar.bz2 rapier-b614b3de5ed388ae0d848f00cc026b1c222584a3.zip | |
Fix edge case
Diffstat (limited to 'src')
| -rw-r--r-- | src/geometry/broad_phase_multi_sap.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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; } } } |
