title: How do I change location of pivot point in SceneKit
body: <p>I'm trying to <strong>move pivot point</strong> to the center of an object so it rotates around its center. How can I do this?</p>
  
  <p><a href="https://i.stack.imgur.com/VK7xU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VK7xU.png" alt="enter image description here"></a></p>
  
  <p>I see no option in Xcode editor for doing this. I tried changing the pivot point programmatically:</p>
  
  <pre><code>    // create a new scene
      let scene = SCNScene(named: "art.scnassets/Heart.scn")!
  
      // change pivot point
      scene.rootNode.pivot = SCNMatrix4MakeTranslation(0.5, 0.5, 0.5)
  </code></pre>
  
  <p>But it doesn't work either, the object still rotates around its old pivot point.</p>