From da3776a40a58814dba89ccc412a1589130837423 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sat, 23 Feb 2019 23:28:27 +0100 Subject: C#: Fix Vector2.AngleToPoint Fixes #26209 --- modules/mono/glue/Managed/Files/Vector2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/glue/Managed/Files/Vector2.cs b/modules/mono/glue/Managed/Files/Vector2.cs index ce41886bfc..73a3252fdb 100644 --- a/modules/mono/glue/Managed/Files/Vector2.cs +++ b/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() -- cgit v1.2.3