3drotationgodotisometrictopdown

How Can I Rotate character based on direction He is Moving in Godot 4.0 3D


enter image description here

Is there a way to do it in code For example : Rotation.y = something


Solution

  • rotation.y = atan2(velocity.x,velocity.z)