TODO: need real functions

This commit is contained in:
Quaternions 2023-10-17 16:34:53 -07:00
parent cbcf047c3f
commit cb6b0acd44

View File

@ -1311,6 +1311,7 @@ impl crate::instruction::InstructionEmitter<PhysicsInstruction> for PhysicsState
//JUST POLLING!!! NO MUTATION //JUST POLLING!!! NO MUTATION
let mut collector = crate::instruction::InstructionCollector::new(time_limit); let mut collector = crate::instruction::InstructionCollector::new(time_limit);
//check for collision stop instructions with curent contacts //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 { for (_,collision_data) in &self.touching.contacts {
collector.collect(self.predict_collision_end(self.time,time_limit,collision_data)); collector.collect(self.predict_collision_end(self.time,time_limit,collision_data));
} }
@ -1475,6 +1476,7 @@ impl crate::instruction::InstructionConsumer<PhysicsInstruction> for PhysicsStat
self.touching.constrain_acceleration(&self.models,&mut a); self.touching.constrain_acceleration(&self.models,&mut a);
self.body.acceleration=a; self.body.acceleration=a;
//check ground //check ground
//self.touching.get_move_state();
match &c.face { match &c.face {
TreyMeshFace::Top => { TreyMeshFace::Top => {
//TODO: make this more advanced checking contacts //TODO: make this more advanced checking contacts