I am making a top-down game. I have a character that moves and looks at the mouse for aiming. how do i get the camera to follow my character, when i put the camera on the character the camera turns with the character how do i fix this?
1 Answer
1You could simply lock the rotation of the camera around the y-axis by
transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles.x, 0, transform.rotation.eulerAngles.z);