Hello
I have a script where by i move my rigidbody like this:
Vector3 direction = (target - transform.position).normalized;
rb.MovePosition(transform.position + direction * Time.deltaTime * walkSpeed);
But i want to rotate the character so he is facing the direction of travel as he walks. What is the best way to do this when having a known direction as I am unsure on what to use.