+1 vote

I'm having difficulty rotating the objects, because when I finally realize my code is already with millions of rules that I do not understand anymore, because something always does not go as expected, I'm using "set_rot" would be the best way? I do not understand, when I rotate in the editor I see one way, during another's game.

in Engine by (203 points)

1 Answer

+2 votes
Best answer

The set_rot method expects a radian value, the editor works with degree.
Try the set_rotd/get_rotd functions, or use radians in your code!

by (684 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.