diff --git a/src/physics.rs b/src/physics.rs index 51084e5..3c88061 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -748,7 +748,9 @@ impl TouchingState{ for contact in &self.contacts{ let (n,_)=models.mesh(contact.model_id).face_nd(contact.face_id); let d=n.dot(*velocity); - *velocity-=n*(d/n.dot(n)); + if d(MoveState,Planar64Vec3){