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,181 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 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.