I want my model to face the direction that it is moving in. Does anyone have some good code to do this? Here is the code that I am using to move the model:
moveDirection = new Vector3((Input.GetAxis("Horizontal")), (-Input.GetAxis("Vertical")), 0);
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= speed;
I want the model to rotate and face the direction that it is moving. Like I said if anyone has any good code for doing this, I would really appreciate it.