title: SceneKit - adding SCNNode on another SCNNode
body: <p>I'm trying to put sphere on top of the box, but the position is strange: Ball is half hidden inside box. I tried to change box and sphere pivot, but it didn't help. Here's the code:</p>
  
  <pre><code>    let cubeGeometry = SCNBox(width: 10, height: 10, length: 10, 
      chamferRadius: 0)
      let cubeNode = SCNNode(geometry: cubeGeometry)
      //cubeNode.pivot = SCNMatrix4MakeTranslation(0, 1, 0)
      scene.rootNode.addChildNode(cubeNode)
  
      let ballGeometry = SCNSphere(radius: 1)
      let ballNode = SCNNode(geometry: ballGeometry)
      ballNode.pivot = SCNMatrix4MakeTranslation(0.5, 0, 0.5)
      ballNode.position = SCNVector3Make(0, 5, 0)
      cubeNode.addChildNode(ballNode)`
  </code></pre>
  
  <p>and the result:
  <a href="https://i.stack.imgur.com/aJSVo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aJSVo.png" alt="enter image description here"></a></p>
  
  <p>what I'm doing wrong? How to put the ball right on the top side of the box?</p>
  
  <p><strong>UPDATE</strong>: If I add Cube instead of ball, it looks good as I want</p>