From 900aa7e51ecf26bc242f7853bdbcad68eb02b31a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 1 Dec 2026 16:05:28 +0400 Subject: fix(combat): aim mounted turrets in their authored axes Keep the authored root rotation when converting a target from a chassis socket into the animated turret model. AutoDemo no longer turns the medium turret sideways toward a target on level ground. Compared the stock muzzle direction with the recorded GOG Control.dll launch and checked AutoDemo in the Vulkan window, the licensed combat run, and the workspace suite. --- crates/fparkan-runtime/src/turret_aim.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/fparkan-runtime/src/turret_aim.rs') diff --git a/crates/fparkan-runtime/src/turret_aim.rs b/crates/fparkan-runtime/src/turret_aim.rs index 2c9c66e7..d8e145fd 100644 --- a/crates/fparkan-runtime/src/turret_aim.rs +++ b/crates/fparkan-runtime/src/turret_aim.rs @@ -9,8 +9,8 @@ use fparkan_render::LegacyIron3dEulerTransform; /// An autonomous turret's selected direction in its mount's coordinates. #[derive(Clone, Copy, Debug)] pub struct TurretAim { - azimuth: f32, - elevation: f32, + pub(super) azimuth: f32, + pub(super) elevation: f32, } impl TurretAim { -- cgit v1.2.3