Is there a way to do it in code For example : Rotation.y = something
rotation.y = atan2(velocity.x,velocity.z)