From cc80dda408756284dc07fabdbf768837001b3def Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Sun, 29 Jan 2023 18:43:54 +0100 Subject: C#: Fix `Rotated` and `RotatedLocal` Implementation was interchanged. --- modules/mono/glue/GodotSharp/GodotSharp/Core/Transform2D.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/mono/glue') diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform2D.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform2D.cs index e939396926..3f83a14c2b 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform2D.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform2D.cs @@ -294,7 +294,7 @@ namespace Godot /// The rotated transformation matrix. public readonly Transform2D Rotated(real_t angle) { - return this * new Transform2D(angle, new Vector2()); + return new Transform2D(angle, new Vector2()) * this; } /// @@ -306,7 +306,7 @@ namespace Godot /// The rotated transformation matrix. public readonly Transform2D RotatedLocal(real_t angle) { - return new Transform2D(angle, new Vector2()) * this; + return this * new Transform2D(angle, new Vector2()); } /// -- cgit v1.2.3