aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-05-31 16:57:20 +0200
committerGitHub <noreply@github.com>2022-05-31 16:57:20 +0200
commitfebd7fbe9b963ac0119d5a0c403a3c4ec86fbec2 (patch)
tree204d574134db582ff30e0684a3efe428db70f46c /src
parent77aa1dda087af89e5615c4654dd4cd27333a9abb (diff)
parent362b9f2f8b56b099f3b8dc2ca8ba337e163025f6 (diff)
downloadrapier-febd7fbe9b963ac0119d5a0c403a3c4ec86fbec2.tar.gz
rapier-febd7fbe9b963ac0119d5a0c403a3c4ec86fbec2.tar.bz2
rapier-febd7fbe9b963ac0119d5a0c403a3c4ec86fbec2.zip
Merge pull request #337 from dimforge/event-removed-fix
Fix incorrect sensor events being generated after collider removal
Diffstat (limited to 'src')
-rw-r--r--src/geometry/narrow_phase.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/geometry/narrow_phase.rs b/src/geometry/narrow_phase.rs
index bcce080..15d16fa 100644
--- a/src/geometry/narrow_phase.rs
+++ b/src/geometry/narrow_phase.rs
@@ -341,7 +341,10 @@ impl NarrowPhase {
}
// Generate Stopped collision events for intersections.
- for (a, b, pair) in self.intersection_graph.interactions_with(contact_graph_id) {
+ for (a, b, pair) in self
+ .intersection_graph
+ .interactions_with(intersection_graph_id)
+ {
if pair.start_event_emited {
events.handle_collision_event(
bodies,