Merge pull request #26210 from neikeq/issue-26209

C#: Fix Vector2.AngleToPoint
This commit is contained in:
Ignacio Etcheverry 2019-02-23 23:40:25 +01:00 committed by GitHub
commit c2bc458dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()