real functions

This commit is contained in:
Quaternions 2023-11-01 19:13:25 -07:00
parent cf9063bffc
commit 769f88eb9f

View File

@ -1195,16 +1195,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(); self.move_state=self.touching.get_move_state();
match &c.face {
TreyMeshFace::Top => {
//TODO: make this more advanced checking contacts
self.move_state=MoveState::Air;
},
_=>if let Some(a)=self.refresh_walk_target(){
self.body.acceleration=a;
},
}
}, },
PhysicsCollisionAttributes::Intersect{intersecting: _,general: _}=>{ PhysicsCollisionAttributes::Intersect{intersecting: _,general: _}=>{
self.touching.remove(&c); self.touching.remove(&c);