The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

+1 vote

I couldn't find anything else on the subject, and to an extent therefore I've simply just decided to get help here instead, so that's why I'm asking this specific question right now right here. Also, this is for 3D.

I've been trying to do so with my character for some time, and so far, nothing's worked, and thinking about it just wrecks my brain. Basically, I need to know how to rotate the character based on the WASD keys, which is what I'm using right now, and this works by when you press a WASD key, the character rotates in the correct direction according to what direction key was pressed, including diagonals, and the character won't return to its original rotation in that case, if you haven't realized yet.

I would prefer for this to work via my move_vec variable which is a Vector3, which was what I was trying to make use of, but your solution is yours to give me. Also, since I'm a amateur to Godot, I want this answer to be a simple one for me, but again, it's ultimately up to you which answer you give me. Thanks.

in Engine by (13 points)

what your describing that you can already do ^ is what i'm trying to do could you please show me your script for it, ive been trying to get my character to face direction of movement.

1 Answer

+1 vote

Seems you need to orient your character to a direciton vector:
Check this tutorial

by (22 points)
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.