Basically, I have a camera that follows around the player in 3rd person, and I need a way to make it so the player’s y rotation matches the camera’s y rotation (in the game, it would look like the player’s back is always facing towards the camera). Otherwise, it looks really strange because the player is moving in the right direction, but is always facing the same way. Other solutions I’ve tried have made the player face away from the camera on all axes, which is definitely not right.
Thanks for your help!
If you want to make a 3rd person game you should look up “Cinemachine”. It’s a realy usefull unity tool for 3rd person camera.
If you use GetComponent<Rigidbody>().transform.Rotate(x, y, z);
and the camera is a child of the player then it should stay in the same position relative to the player.