diff --git a/src/navigation.rs b/src/navigation.rs index 7acc451..19eed8f 100644 --- a/src/navigation.rs +++ b/src/navigation.rs @@ -25,7 +25,6 @@ pub enum NavigationAction { SnapRight, SnapCardinal, SnapReverse, - Sprint, } #[derive(Component, Clone, Copy, Debug, Deref, DerefMut, Reflect)] @@ -78,7 +77,6 @@ fn movement_controls( for (entity, mut actions, mut velocity, mut speed, max_speed, rotation_speed, transform) in &mut query { - let sprinting = actions.pressed(NavigationAction::Sprint); let mut cleanup = false; if actions.pressed(NavigationAction::Move) { if let Some(pair) = actions.clamped_axis_pair(NavigationAction::Move) { @@ -100,11 +98,7 @@ fn movement_controls( } else { forward_backward_movement_factor }; - let mut s = if sprinting { - **max_speed - } else { - **max_speed / config.sprint_movement_factor - }; + let mut s = **max_speed; s *= movement_factor; **speed = s; let mut v = direction * **speed; @@ -340,7 +334,6 @@ pub struct NavigationPlugin { pub forward_movement_factor: f32, pub backward_movement_factor: f32, pub strafe_movement_factor: f32, - pub sprint_movement_factor: f32, pub states: Vec, pub describe_undescribed_areas: bool, pub log_area_descriptions: bool, @@ -352,7 +345,6 @@ impl Default for NavigationPlugin { forward_movement_factor: 1., backward_movement_factor: 1., strafe_movement_factor: 1., - sprint_movement_factor: 3., states: vec![], describe_undescribed_areas: false, log_area_descriptions: true,