I have a top-down game using Unitys basic character movement and 3rd person camera, but I would like stop the camera from rotating when the character turns. How can I do this? Basically I just want the camera to move on 2 axis but not rotate on any of them Thanks.
transform.rotation = Quaternion.Euler(0.0f, 0.0f, 0.0f) can be used to set the camera’s rotation to x = 0, y = 0, z = 0. I believe this works on a global level, and you may need to adjust the angles to get your camera pointing in the right direction. You may also get some jerking when other things are telling the camera to rotate, but I’m not sure.