From efd9e5887def6780a39815d9bccedf3e26618538 Mon Sep 17 00:00:00 2001 From: oelsart Date: Thu, 29 Jan 2026 19:39:07 +0900 Subject: [PATCH] Fixed Transform.rotation so it does not invert --- .../Vehicles/Graphics/GraphicClasses/Vehicle/Graphic_Rgb.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Vehicles/Graphics/GraphicClasses/Vehicle/Graphic_Rgb.cs b/Source/Vehicles/Graphics/GraphicClasses/Vehicle/Graphic_Rgb.cs index f2af6d0e..3f272cb4 100644 --- a/Source/Vehicles/Graphics/GraphicClasses/Vehicle/Graphic_Rgb.cs +++ b/Source/Vehicles/Graphics/GraphicClasses/Vehicle/Graphic_Rgb.cs @@ -501,9 +501,11 @@ public PreRenderResults ParallelGetPreRenderResults(ref readonly TransformData t material = MatAtFull(transformData.orientation) }; - float rotAngle = transformData.orientation.AsRotationAngle + transformData.rotation; + float rotAngle = transformData.orientation.AsRotationAngle; float rotation = rotAngle + extraRotation; AdjustAngle(transformData.orientation, ref rotation, ref rotAngle); + rotAngle += transformData.rotation; + rotation += transformData.rotation; Quaternion quaternion = Quaternion.AngleAxis(rotation, Vector3.up); if (data is { addTopAltitudeBias: true }) {