Rotation and angles in DEG or RAD documented in cheat sheet #2835
ZlatkoKnezevic
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
@ZlatkoKnezevic |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was toying around with simulating a car with steering and moving it around in 2D. What really tripped me up, was that e.g. DrawRectanglePro() uses angles in degrees for rotation, but Vector2Rotate() uses radians for rotation of a vector. It took me quite a while to figure out why my car was behaving very erratic.
Could it be mentioned somewhere in the cheat sheet, that a float rotation is always in degrees and a float angle is always in radians ( this is the pattern, that I discovered)?
Beta Was this translation helpful? Give feedback.
All reactions