title: What is the difference between camera.transform and pointOfView
body: <p>For placing object in front of the camera, I see there are 2 ways: using <code>camera.transform</code> and <code>pointOfView</code></p>
  
  <p><strong>camera.transform</strong> is from <code>SCNView</code> and <code>scnView.session.currentFrame.camera.transform</code> <a href="https://developer.apple.com/documentation/arkit/arcamera" rel="nofollow noreferrer">https://developer.apple.com/documentation/arkit/arcamera</a></p>
  
  <blockquote>
    <p>The position and orientation of the camera in world coordinate space.</p>
  </blockquote>
  
  <p>Here is how to use it</p>
  
  <pre><code>var translation = matrix_identity_float4x4
  translation.columns.3.z = -2
  node.simdTransform = matrix_multiply(currentFrame.camera.transform, translation)
  </code></pre>
  
  <p><strong>pointOfView</strong> is from <code>SCNView</code> and <code>scnView.pointOfView</code> <a href="https://developer.apple.com/documentation/scenekit/scnscenerenderer/1523982-pointofview" rel="nofollow noreferrer">https://developer.apple.com/documentation/scenekit/scnscenerenderer/1523982-pointofview</a></p>
  
  <blockquote>
    <p>The node from which the scene’s contents are viewed for rendering</p>
  </blockquote>
  
  <p>Here is how it is used, using <code>convertPosition</code> to convert to world coordinate</p>
  
  <pre><code>let camera = scnView.pointOfView!
  let position = SCNVector3(x: 0, y: 0, z: -2)
  node.position = camera.convertPosition(position, to: nil)
  </code></pre>
  
  <p>What is the difference between these 2? Both seems to refer to the camera</p>