From 769f88eb9f8a2db7b11726d2bc1592e771aed683 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 1 Nov 2023 19:13:25 -0700 Subject: [PATCH] real functions --- src/physics.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/physics.rs b/src/physics.rs index 0d56b0e..d13f6a1 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -1195,16 +1195,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 - self.move_state=MoveState::Air; - }, - _=>if let Some(a)=self.refresh_walk_target(){ - self.body.acceleration=a; - }, - } + self.move_state=self.touching.get_move_state(); }, PhysicsCollisionAttributes::Intersect{intersecting: _,general: _}=>{ self.touching.remove(&c);