Skip to content

Commit

Permalink
Fix incorrect sensor events being generated after collider removal
Browse files Browse the repository at this point in the history
Fix #330
  • Loading branch information
sebcrozet committed May 31, 2022
1 parent 77aa1dd commit 362b9f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/geometry/narrow_phase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 362b9f2

Please sign in to comment.