Merge pull request #337 from dimforge/event-removed-fix

Fix incorrect sensor events being generated after collider removal
This commit is contained in:
Sébastien Crozet
2022-05-31 16:57:20 +02:00
committed by GitHub

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,