Browse Source

C#: Fix Vector2.AngleToPoint

Fixes #26209
Ignacio Etcheverry 6 years ago
parent
commit
da3776a40a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mono/glue/Managed/Files/Vector2.cs

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

@@ -84,7 +84,7 @@ namespace Godot
 
         public real_t AngleToPoint(Vector2 to)
         {
-            return Mathf.Atan2(x - to.x, y - to.y);
+            return Mathf.Atan2(y - to.y, x - to.x);
         }
 
         public real_t Aspect()