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

0 votes

Does anyone know how would I slowly rotate kinematicbody some direction in 3D ? For instance a kinematic body is moving in the direction I clicked, and I want it to rotate to point that direction.

in Engine by (14 points)

1 Answer

0 votes

I assume all you need to do is to calculate the angles which it will need to turn towards the location you clicked at, and after that you can use the tween node to animate it over a specific amount of time or you can "make" that animation yourself using angular velocity for a specific velocity but varying time...

EDIT: btw for every angle you can calculate it by calculating the angle on the perpendicular plane( aka for angle on the Z axis you calculate on the XY plane and for the angle on the X axis you calculate on the YZ plane )

by (1,205 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.