mirror of https://github.com/godotengine/godot
C#: Fix `Rotated` and `RotatedLocal`
Implementation was interchanged.
This commit is contained in:
parent
d01ac9c736
commit
cc80dda408
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue