This is a simple question but, I have a main camera who has the original rotation on
X: 0
Y: 270
Z: 0
and I want to make the camera look down in code when something happens. So I made a float called xRotation and set it equal to 20. So, in code, I would like to make the x rotation = to xRotation, the y rotation = to 270, and the z rotation to still remain at 0. I tried using the code “Cam.transform.rotation = new Quaternion(xRotation, 270, 0, 0)” and it just makes the camera turn right and slightly down. Can someone tell me how i should properly do this? & if I need to use a quaternion, can someone explain the w float? Thanks!