SceneKit - adding SCNNode on another SCNNode
问题 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: 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