Topic was automatically imported from the old Question2Answer platform.
Asked By
a human
I thought angles were measured in degrees, but that didn’t work, then I thought they were measured in radians, but I got negative values. Could someone help me with this?
Generally, radians, though it depends on the objects / methods / properties you’re using. All of them are pretty thoroughly documented. Just check the docs for your specific situation.
For example, on a Node2D, the rotation property is in radians while the rotation_degrees property is in, well, degrees.
Additionally, you can convert between the two angle units via deg2rad() and rad2deg()
I have also been getting different values depending on what shape is measured, even tho the other object is at the same angle. Whats that about?