Explorar o código

Use "origin" instead of "o" in Transform2D.Rotation

Carter Anderson %!s(int64=6) %!d(string=hai) anos
pai
achega
22bf89e970
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/mono/glue/Managed/Files/Transform2D.cs

+ 1 - 1
modules/mono/glue/Managed/Files/Transform2D.cs

@@ -17,7 +17,7 @@ namespace Godot
 
         public real_t Rotation
         {
-            get { return Mathf.Atan2(y.x, o.y); }
+            get { return Mathf.Atan2(y.x, origin.y); }
         }
 
         public Vector2 Scale