Commit da3776a4 by Ignacio Etcheverry

C#: Fix Vector2.AngleToPoint

Fixes #26209
parent fd68bb25
...@@ -84,7 +84,7 @@ namespace Godot ...@@ -84,7 +84,7 @@ namespace Godot
public real_t AngleToPoint(Vector2 to) 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() public real_t Aspect()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment