diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-01 15:05:28 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-01 15:05:28 +0300 |
| commit | 900aa7e51ecf26bc242f7853bdbcad68eb02b31a (patch) | |
| tree | f5264f54167ac71e604e0a651f4fbec53fde2526 /crates/fparkan-runtime/src/turret_aim.rs | |
| parent | f03b144907be8ad8cec2e1c7487b5d9e0a43f13e (diff) | |
| download | fparkan-900aa7e51ecf26bc242f7853bdbcad68eb02b31a.tar.xz fparkan-900aa7e51ecf26bc242f7853bdbcad68eb02b31a.zip | |
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.
Diffstat (limited to 'crates/fparkan-runtime/src/turret_aim.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/turret_aim.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |
