From 23ec106748d4641a9dfd809b56029391daddf6ba Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 20:52:30 +0400 Subject: fix(input): match the original hero mouse turn scale Use the stock relative X binding and control settings, filter once per input sample, and carry the filter across collision steps. World3D dispatch confirmed both directions, saturation and angle wrapping. Mission 2 was checked from a stock spawn in a Vulkan window with two view captures. The runtime still applies the requested rotation in one step. --- crates/fparkan-runtime/src/boarding.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/fparkan-runtime/src/boarding.rs') diff --git a/crates/fparkan-runtime/src/boarding.rs b/crates/fparkan-runtime/src/boarding.rs index afb2e50d..e7ad46d2 100644 --- a/crates/fparkan-runtime/src/boarding.rs +++ b/crates/fparkan-runtime/src/boarding.rs @@ -143,6 +143,7 @@ pub fn board_friendly_warbot( }); mission.player_pitch_bits = 0; mission.hero_walk_velocity = [0.0; 2]; + mission.hero_look.filtered_x = 0.0; } Ok(Some(cockpit)) } @@ -224,6 +225,7 @@ pub fn disembark_warbot(engine: &mut Engine) -> Result, mission.boarding = None; mission.player_pitch_bits = 0; mission.hero_walk_velocity = [0.0; 2]; + mission.hero_look.filtered_x = 0.0; Ok(Some(hero)) } -- cgit v1.2.3