0 votes

I was following a tutorial about grid movement and they are using unity of course not everything is plug and play but this section confused me he used
:transform.localEularAngles = current_dir

current_dir being one of the vector3.Forward etc, so whats a better way of setting the rotation, thanks!

Godot version 3.2.3
in Engine by (132 points)

1 Answer

+1 vote
Best answer

Godot Doc (try saying that 3 times fast) advises that you avoid using Euler Angles and for good reasons too. in fact i think that guy's method was pretty good for the century he was in but not by today's (You'll never be able to fly a plane accurately using them).

This probably directly answers your question

Spatial.set_rotation_degrees(Spatial.get_rotation_degrees() + Vector3.FORWARD)

But learn the Godot approved way first and also have a look at the Basis and Quat sections

by (3,066 points)
selected by

Maybe I didn't say it directly, but I was asking for godots way of doing it though I did find another way and did that instead, thanks anyways!

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 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 webmaster@godotengine.org with your username.