aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/main.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-26 19:52:30 +0300
committerValentin Popov <valentin@popov.link>2026-11-26 19:52:30 +0300
commit23ec106748d4641a9dfd809b56029391daddf6ba (patch)
tree64a5c65367d889e8bac9eac352bdc5d916a295ca /apps/fparkan-game/src/main.rs
parent1f366ac0d39a3b1f0b19721ed78936bad1e504dd (diff)
downloadfparkan-23ec106748d4641a9dfd809b56029391daddf6ba.tar.xz
fparkan-23ec106748d4641a9dfd809b56029391daddf6ba.zip
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.
Diffstat (limited to 'apps/fparkan-game/src/main.rs')
-rw-r--r--apps/fparkan-game/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs
index a328ccad..dfd7be88 100644
--- a/apps/fparkan-game/src/main.rs
+++ b/apps/fparkan-game/src/main.rs
@@ -14024,6 +14024,7 @@ mod tests {
};
let mut hero = pose(step_mission_frame(&mut engine, now).unwrap());
// XY waypoints follow the source bunker graph from the lower room to a terrain entrance.
+ let mut input = player_collision::WalkRoute::default();
for target in [
[11.562, 28.644, 0.0],
[26.370, 28.644, 0.0],
@@ -14055,7 +14056,7 @@ mod tests {
let step = plan_player_motion_with_collision(
&engine,
cockpit,
- player_collision::walk_toward(hero, [x, y], 2.0),
+ input.toward(hero, [x, y], 2.0),
|step| {
app.resolve_player_building_step(step)
.map_err(EngineError::Movement)