Fix incorrect sensor events being generated after collider removal

Fix #330
This commit is contained in:
Sébastien Crozet
2022-05-31 16:27:53 +02:00
parent 77aa1dda08
commit 362b9f2f8b

View File

@@ -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,