diff options
author | Raul Santos <raulsntos@gmail.com> | 2023-01-29 18:43:54 +0100 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2023-01-29 18:43:54 +0100 |
commit | cc80dda408756284dc07fabdbf768837001b3def (patch) | |
tree | 0b6058b32717176b48fa09586def8186d03e9eb0 | |
parent | d01ac9c73686fdf86f083f4d3ee1301bb54d855f (diff) |
C#: Fix `Rotated` and `RotatedLocal`
Implementation was interchanged.
-rw-r--r-- | modules/mono/glue/GodotSharp/GodotSharp/Core/Transform2D.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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 /// <returns>The rotated transformation matrix.</returns> public readonly Transform2D Rotated(real_t angle) { - return this * new Transform2D(angle, new Vector2()); + return new Transform2D(angle, new Vector2()) * this; } /// <summary> @@ -306,7 +306,7 @@ namespace Godot /// <returns>The rotated transformation matrix.</returns> public readonly Transform2D RotatedLocal(real_t angle) { - return new Transform2D(angle, new Vector2()) * this; + return this * new Transform2D(angle, new Vector2()); } /// <summary> |