SceneKit – Get direction of camera
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. You can create an SCNNode that place it in worldFront property to get a vector with the x, y, and z direction. Another way you could do it is like how this project did it: // Credit to https://github.com/farice/ARShooter func getUserVector() ->