I need to find out which direction a camera is looking at, e.g. if it is looking towards Z+
, Z-
, X+
, or X-
.
I've tried using eulerAngles
, but the range for yaw goes 0
-> 90
-> 0
-> -90
-> 0
which means I can only detect if the camera is looking towards Z
or X
, not if it's looking towards the positive or negative directions of those axes.