-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[raymath] Angle returned by Vector2Angle()
isn't correct
#2172
Comments
raysan5
changed the title
Angles returned by raymath.Vector2Angle isn't correct
[raymath] Angle returned by Nov 27, 2021
Vector2Angle()
isn't correct
This should be closed now. |
@leowribeiro Note that |
@leowribeiro that's because you are using an old version of raylib. That was an issue that was fixed some time ago. Now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like this post say, the angle isn't correct.
I used to multiply one of the vectors by 1000 when calling the function to avoid that problem.
The problem came back with
Vector2Angle({0,1}, {0,1000})
the result shall be 0 but the returned value is 90I fixed it by replacing this line
raylib/src/raymath.h
Line 284 in 49a5547
By this one in the raymath.h of my project
The text was updated successfully, but these errors were encountered: