From ea94bed00d8565b582872d6c0b2d2faa86559755 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sat, 9 Nov 2024 17:15:57 +0300 Subject: [PATCH] fix: Transform Rotation Miscalculation --- Engine.Core/Transform.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine.Core/Transform.cs b/Engine.Core/Transform.cs index db23dc6..3e8e858 100644 --- a/Engine.Core/Transform.cs +++ b/Engine.Core/Transform.cs @@ -66,7 +66,7 @@ public class Transform : ITransform public float Rotation { - get => _localRotation * (Parent?.Rotation ?? 1f); + get => _localRotation + (Parent?.Rotation ?? 0f); set { if (value == _rotation)