From cb6b0acd443e002d779efb77307e6f27c12bbb2b Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 17 Oct 2023 16:34:53 -0700 Subject: [PATCH] TODO: need real functions --- src/physics.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/physics.rs b/src/physics.rs index bda76a18..d7f0bc0f 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -1311,6 +1311,7 @@ impl crate::instruction::InstructionEmitter for PhysicsState //JUST POLLING!!! NO MUTATION let mut collector = crate::instruction::InstructionCollector::new(time_limit); //check for collision stop instructions with curent contacts + //TODO: make this into a touching.next_instruction(&mut collector) member function for (_,collision_data) in &self.touching.contacts { collector.collect(self.predict_collision_end(self.time,time_limit,collision_data)); } @@ -1475,6 +1476,7 @@ impl crate::instruction::InstructionConsumer for PhysicsStat self.touching.constrain_acceleration(&self.models,&mut a); self.body.acceleration=a; //check ground + //self.touching.get_move_state(); match &c.face { TreyMeshFace::Top => { //TODO: make this more advanced checking contacts