Get SCNVector3 from CGPoint
I am trying to get a SCNVector3 from a CGPoint. I am using a gesture recognizer to get the location of a touch (as a CGPoint). The problem is that the touch doesn't always hit something when I hit test because there isn't always an object being touched. (Touch an empty space to move your ship to that empty spot). Other Stack Overflow question that I have found uses the SCNHitTestResult to get the worldCoordinates but that doesn't work for me. Does anyone know how to find this? Given that I know the z coordinate of course. Ships that move always move with a z position of 1. I Need