- Home /
Top-Down Camera Trouble
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?
Comment
Best Answer
Answer by efge · Apr 19, 2011 at 11:19 AM
You 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);
Your answer
Follow this Question
Related Questions
Camera rotation around player while following. 6 Answers
Camera not moving on mobile 0 Answers
Wrong Camera axis after "zoom" to GameObject 0 Answers
Camera move belong a certain path 1 Answer
Camera follow rotating ball 2 Answers