aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/lib.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-26 20:10:24 +0300
committerValentin Popov <valentin@popov.link>2026-11-26 20:10:24 +0300
commit75dcc70912d4e6feb14d9370452914ff826849f7 (patch)
tree06c5577b02e92daff7deb4c1cd544ebd210323ed /crates/fparkan-runtime/src/lib.rs
parent07a90f035ebd935ad9705a5f8a8916638a4a8f4f (diff)
downloadfparkan-75dcc70912d4e6feb14d9370452914ff826849f7.tar.xz
fparkan-75dcc70912d4e6feb14d9370452914ff826849f7.zip
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.
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
-rw-r--r--crates/fparkan-runtime/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
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,