From 1f1ef5d3ad2d7d653219de1169d1a6e5d95f574e Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 8 Sep 2023 12:28:16 -0700 Subject: [PATCH] there is no model --- src/body.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/body.rs b/src/body.rs index 47e26c3..b47a380 100644 --- a/src/body.rs +++ b/src/body.rs @@ -102,11 +102,11 @@ impl crate::event::EventTrait for PhysicsState { } //check for collision stop events with curent contacts for collision_data in self.contacts.iter() { - collect_event(self.model.predict_collision(collision_data.model)); + collect_event(self.predict_collision(collision_data.model)); } //check for collision start events (against every part in the game with no optimization!!) for &model in self.world.models { - collect_event(self.model.predict_collision(&model)); + collect_event(self.predict_collision(&model)); } //check to see when the next strafe tick is collect_event(self.next_strafe_event());