there is no model

This commit is contained in:
Quaternions 2023-09-08 12:28:16 -07:00
parent 54bf0358d6
commit 1f1ef5d3ad

View File

@ -102,11 +102,11 @@ impl crate::event::EventTrait for PhysicsState {
} }
//check for collision stop events with curent contacts //check for collision stop events with curent contacts
for collision_data in self.contacts.iter() { 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!!) //check for collision start events (against every part in the game with no optimization!!)
for &model in self.world.models { 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 //check to see when the next strafe tick is
collect_event(self.next_strafe_event()); collect_event(self.next_strafe_event());