From 07a90f035ebd935ad9705a5f8a8916638a4a8f4f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 20:58:16 +0400 Subject: fix(movement): carry unfinished hero turns across ticks Use the angular limit in Control profile word 11 and preserve the unconsumed phase. The original Control read and write dispatch and orientation update delivered 0.5022847 then 0.4401929 radians at two 10 ms samples. The same steps changed the view in a Vulkan window from the stock Firing Range start. --- crates/fparkan-runtime/src/boarding.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 e7ad46d2..53ce8c81 100644 --- a/crates/fparkan-runtime/src/boarding.rs +++ b/crates/fparkan-runtime/src/boarding.rs @@ -143,7 +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; + mission.hero_look.reset(); } Ok(Some(cockpit)) } @@ -225,7 +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; + mission.hero_look.reset(); Ok(Some(hero)) } -- cgit v1.2.3