From a0a75b1921087656b9d7beef6968d02e732f8af9 Mon Sep 17 00:00:00 2001 From: jshipsey Date: Sun, 25 Apr 2021 22:00:37 -0400 Subject: [PATCH] comments --- common/src/states/utils.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/common/src/states/utils.rs b/common/src/states/utils.rs index 0cd7be46f6..561a060fc8 100644 --- a/common/src/states/utils.rs +++ b/common/src/states/utils.rs @@ -270,8 +270,6 @@ pub fn handle_forced_movement( movement: ForcedMovement, efficiency: f32, ) { - handle_orientation(data, update, efficiency); - match movement { ForcedMovement::Forward { strength } => { if let Some(accel) = data.physics.on_ground.then_some(data.body.base_accel()) { @@ -330,8 +328,6 @@ pub fn handle_orientation(data: &JoinData, update: &mut StateUpdate, efficiency: /// Updates components to move player as if theyre swimming fn swim_move(data: &JoinData, update: &mut StateUpdate, efficiency: f32, submersion: f32) -> bool { if let Some(force) = data.body.swim_thrust() { - handle_orientation(data, update, efficiency * 0.2); - let force = efficiency * force; let mut water_accel = force / data.mass.0; @@ -373,8 +369,6 @@ pub fn fly_move(data: &JoinData, update: &mut StateUpdate, efficiency: f32) -> b let accel = thrust / data.mass.0; - handle_orientation(data, update, efficiency); - // Elevation control match data.body { // flappy flappy