From 23ec106748d4641a9dfd809b56029391daddf6ba Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 20:52:30 +0400 Subject: 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. --- crates/fparkan-runtime/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crates/fparkan-runtime/src/lib.rs') diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index c21a1c89..527f2f85 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -97,6 +97,7 @@ use behavior_clock::next_crt_rand; mod mesh_collision; mod mining; pub use laboratory::LaboratoryReport; +mod hero_look; mod hero_walk; mod main_teleport; mod manual_chassis; @@ -1476,6 +1477,7 @@ struct LoadedMissionState { player_pitch_bits: u32, player_gait: player_gait::PlayerGait, hero_walk_velocity: [f32; 2], + hero_look: hero_look::HeroLook, boarding: Option, local_hero: Option, script_host_mode: MissionMode, @@ -2809,6 +2811,7 @@ node_provider_distribution_suspended: false, player_pitch_bits: 0, player_gait: Default::default(), hero_walk_velocity: [0.0; 2], + hero_look: hero_look::HeroLook::load(vfs.as_ref()), boarding: None, local_hero, script_host_mode: request.mode, @@ -3036,7 +3039,7 @@ pub fn frame_with_player_motion( if let Some(mission) = &mut engine.loaded { mission.player_pitch_bits = motion.pitch_bits; frame.player_pitch_bits = motion.pitch_bits; - player_motion::commit_velocity( + player_motion::commit_motion_state( mission, cockpit, motion, -- cgit v1.2.3