diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-26 19:52:30 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-26 19:52:30 +0300 |
| commit | 23ec106748d4641a9dfd809b56029391daddf6ba (patch) | |
| tree | 64a5c65367d889e8bac9eac352bdc5d916a295ca /crates/fparkan-runtime/src/boarding.rs | |
| parent | 1f366ac0d39a3b1f0b19721ed78936bad1e504dd (diff) | |
| download | fparkan-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 'crates/fparkan-runtime/src/boarding.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/boarding.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<Option<StartingCockpit>, 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)) } |
