title: Scenekit object that stays in the center of the camera view (Swift)
body: <p>So I have a camera in my <code>SceneKit</code> project that is able to rotate and move around freely, and I have an object that, in some cases, needs to stay at a constant distance away from the camera and always be in the center of its view no matter how the camera rotates. Unfortunately, I'm new to <code>SceneKit</code> and don't know how to accomplish this.</p>
  
  <p>So the key things I'm looking for are:</p>
  
  <ol>
  <li><p>How to have the object always at the same distance from the camera</p></li>
  <li><p>How to have the object always be in the center of the camera's view no matter what direction it's looking</p></li>
  </ol>
  
  <p>At the moment, both the camera and the object (an <code>SCNNode</code> with a box geometry) are children of the same scene.</p>
  
  <p>I'm coding in <code>swift</code> so I'd prefer an answer using that, but if you have a solution in <code>objective-c</code>, that works too.</p>
  
  <p>Thanks a bunch!</p>