Hello all,
I am wondering if there is a way to code the Camera to output what direction its viewing, like the direction in the coordinate system (specifically +X,-X,+Y and -Y).
example: if the camera is looking at a cube centered in the middle (0,0,0) and based on the cube side it would output the direction or possibly what side of the cube it was viewing. lets say if you labelled the cube “Right, Left, Front and Back”?
I would then like to have a function in puzzles that states
if: camera is looking -X = direction or viewing the defined labelled side!!
Hopefully this makes sense! Any help on this would be appreciated or if a function already exists could someone please provide the puzzle code on how this would work!
Thanks,
PD