You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Merge pull request #26210 from neikeq/issue-26209
C#: Fix Vector2.AngleToPoint
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user