From 75dcc70912d4e6feb14d9370452914ff826849f7 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 21:10:24 +0400 Subject: fix(input): use the original hero turret elevation range Apply the World3D mouse Y filter and reverse setting, update the normalized turret request, and use the authored neutral and span to share pitch with the cockpit and elevation tracks. Original World3D dispatch and Control manual mode confirmed the gain and clamp. Stock Firing Range captures show both endpoints and the licensed Constructor test checks the camera and turret together. --- crates/fparkan-runtime/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/fparkan-runtime/src/lib.rs') diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index 527f2f85..f62c0784 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -18006,7 +18006,8 @@ mod tests { assert_eq!(turned.position, original.position); assert_ne!(turned.orientation[2], original.orientation[2]); assert_eq!(turned.orientation[..2], original.orientation[..2]); - assert_eq!(f32::from_bits(blocked.player_pitch_bits), 1.0); + let pitch = f32::from_bits(blocked.player_pitch_bits); + assert!((pitch.abs().to_degrees() - 27.5).abs() < 1e-4); let movement = PlayerMotion { mouse_x: 0.0, mouse_y: 0.0, -- cgit v1.2.3