From 1f366ac0d39a3b1f0b19721ed78936bad1e504dd Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 20:37:09 +0400 Subject: fix(movement): carry hero walking velocity between ticks Take both horizontal limits and acceleration from the active Control profile. Apply the measured slope braking after the input update and clear velocity on a blocking wall, teleport or boarding. Keep the terrain limit during geometric sweeps so momentum cannot skip a narrow cliff. In the stock Firing Line window the hero reached the slope, stopped at its foot, backed away, and coasted on key release. --- 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 cb15f420..afb2e50d 100644 --- a/crates/fparkan-runtime/src/boarding.rs +++ b/crates/fparkan-runtime/src/boarding.rs @@ -142,6 +142,7 @@ pub fn board_friendly_warbot( flight_velocity: [0.0; 3], }); mission.player_pitch_bits = 0; + mission.hero_walk_velocity = [0.0; 2]; } Ok(Some(cockpit)) } @@ -222,6 +223,7 @@ pub fn disembark_warbot(engine: &mut Engine) -> Result, } mission.boarding = None; mission.player_pitch_bits = 0; + mission.hero_walk_velocity = [0.0; 2]; Ok(Some(hero)) } -- cgit v1.2.3