We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f1fe08 + e9ace71 commit f382a2bCopy full SHA for f382a2b
modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2.cs
@@ -139,7 +139,7 @@ public readonly real_t AngleTo(Vector2 to)
139
/// <returns>The angle between the two vectors, in radians.</returns>
140
public readonly real_t AngleToPoint(Vector2 to)
141
{
142
- return Mathf.Atan2(y - to.y, x - to.x);
+ return Mathf.Atan2(to.y - y, to.x - x);
143
}
144
145
/// <summary>
modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2i.cs
@@ -123,7 +123,7 @@ public readonly real_t AngleTo(Vector2i to)
123
124
public readonly real_t AngleToPoint(Vector2i to)
125
126
127
128
129
0 commit comments