From e6e7366e6600d3b234cdbfd4c8c0663cde37bdb5 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 6 Nov 2023 16:35:47 -0800 Subject: [PATCH] fix idiot --- src/physics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/physics.rs b/src/physics.rs index 3c88061..c573598 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -782,7 +782,7 @@ impl TouchingState{ collector.collect(models.mesh(contact.model_id).brute_out_face(body,collector.time(),contact.face_id).map(|(face,time)|{ TimedInstruction{ time, - instruction:PhysicsInstruction::CollisionStart( + instruction:PhysicsInstruction::CollisionEnd( Collision::Contact(ContactCollision{model_id:contact.model_id,face_id:face}) ), } @@ -794,7 +794,7 @@ impl TouchingState{ collector.collect(models.mesh(intersect.model_id).brute_out(&relative_body,collector.time()).map(|(face,time)|{ TimedInstruction{ time, - instruction:PhysicsInstruction::CollisionStart( + instruction:PhysicsInstruction::CollisionEnd( Collision::Intersect(IntersectCollision{model_id:intersect.model_id}) ), }