Detect camera looking down - FPSController
Currently I am using :
Vector3 forward = transform.forward;
forward.y = 0;
float viewDirection = Quaternion.LookRotation(forward).eulerAngles.y;
In order to detect the rotation (left + right) of the camera. However, I can't figure out how to get the angle the camera is facing when looking up and down? It's probably something simple but I can't figure it out.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612114833im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to hide and show level based on player/camera position? 0 Answers
Character quickly vibrates when reaching specific objects. 0 Answers
Camera Shaking At High Speed 0 Answers
How do you rotate camera down 45 degrees no matter the direction? 2 Answers
Can i do an app in "2D" that changes in VR mode when i want? 0 Answers