From 1db5090dcd7bebcf35b587dc148f37a2368c1530 Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Sun, 24 Mar 2024 09:22:38 +0100 Subject: [PATCH] [C#] Fix `Transform3D.InterpolateWith` applying rotation before scale (cherry picked from commit e2ed63b313e3eff714e32f2cd2d01db9f0e2ea9d) --- modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs index b776bbe6f7c..70827109105 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs @@ -253,7 +253,7 @@ namespace Godot private void Rotate(Quat quaternion) { - this *= new Basis(quaternion); + this = new Basis(quaternion) * this; } private void SetDiagonal(Vector3 diagonal)