diff --git a/src/physics.rs b/src/physics.rs index 9239b2b..90be5dd 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -1445,16 +1445,19 @@ impl crate::instruction::InstructionConsumer for PhysicsStat } }, PhysicsInstruction::StrafeTick => { - let camera_mat=self.camera.simulate_move_rotation_y(self.camera.mouse.lerp(&self.next_mouse,self.time).x); - let control_dir=camera_mat*self.style.get_control_dir(self.controls); - //normalize but careful for zero - let d=self.body.velocity.dot(control_dir); - if d