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/manual_flight.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/fparkan-runtime/src/manual_flight.rs') diff --git a/crates/fparkan-runtime/src/manual_flight.rs b/crates/fparkan-runtime/src/manual_flight.rs index db6bee42..cac50b41 100644 --- a/crates/fparkan-runtime/src/manual_flight.rs +++ b/crates/fparkan-runtime/src/manual_flight.rs @@ -88,7 +88,7 @@ impl FlightDrive { } } -fn ramp_axis(velocity: f32, target: f32, acceleration: f32, seconds: f32) -> (f32, f32) { +pub(super) fn ramp_axis(velocity: f32, target: f32, acceleration: f32, seconds: f32) -> (f32, f32) { if acceleration == 0.0 || velocity == target { return (velocity, velocity * seconds); } -- cgit v1.2.3