title: How to get the SCNVector3 position of the camera in relation to it's direction ARKit Swift
body: <p>I am trying to attach an object in front of the camera, but the issue is that it is always in relation to the initial camera direction. How can I adjust/get the <code>SCNVector3</code> position to place the object in front, even if the direction of the camera is up or down? </p>
  
  <p>This is how I do it now: </p>
  
  <pre><code>let ballShape = SCNSphere(radius: 0.03)
  let ballNode = SCNNode(geometry: ballShape)
  let viewPosition = sceneView.pointOfView!.position
  ballNode.position = SCNVector3Make(viewPosition.x, viewPosition.y, viewPosition.z - 0.4)
  sceneView.scene.rootNode.addChildNode(ballNode)
  </code></pre>