title: ARKit – Get current position of ARCamera in a scene
body: <p>I'm in the process of learning both ARKit and Scenekit concurrently, and it's been a bit of a challenge. </p>
  
  <p>With a ARWorldTrackingSessionConfiguration session created, I was wondering if anyone knew of a way to get the position of the user's 'camera' in the scene session. The idea is I want to animate an object towards the user's current position. </p>
  
  <pre><code>let reaperScene = SCNScene(named: "reaper.dae")!
  let reaperNode = reaperScene.rootNode.childNode(withName: "reaper", recursively: true)!
  reaperNode.position = SCNVector3Make(0, 0, -1)
  let scene = SCNScene()
  scene.rootNode.addChildNode(reaperNode)
  
  // some unknown amount of time later   
  let currentCameraPosition = sceneView.pointOfView?.position
  let moveAction = SCNAction.move(to: currentCameraPosition!, duration: 1.0)
  reaperNode.runAction(moveAction)
  </code></pre>
  
  <p>However, it seems that currentCameraPosition is always [0,0,0], even though I am moving the camera around. Any idea what I'm doing wrong? Eventually the idea is I would rotate the object around an invisible sphere until it is in front of the camera and then animate it in, doing something similar to this: <a href="https://stackoverflow.com/questions/25654772/rotate-scncamera-node-looking-at-an-object-around-an-imaginary-sphere">Rotate SCNCamera node looking at an object around an imaginary sphere</a> (that way the user sees the object animate towards them)</p>
  
  <p>Thanks for any help.</p>