From a07955d63589cf2184092a944b6cafe11e477665 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 15 May 2024 05:02:00 +0200 Subject: [PATCH] force-enable rotation stabiliser while holding space key --- src/camera.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/camera.rs b/src/camera.rs index 8ffa49d..1379342 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -510,7 +510,8 @@ pub fn apply_input_to_player( } } - let angular_slowdown: f64 = if settings.rotation_stabilizer_active { + let slowrot = settings.rotation_stabilizer_active || key_input.pressed(settings.key_stop); + let angular_slowdown: f64 = if slowrot { (2.0 - engine.reaction_wheels.powf(0.05).clamp(1.001, 1.1)) as f64 } else { 1.0