How to get the real position of a sub node in SceneKit after rotation?
I am developing a scene with SceneKit. I have a main node with a subnode: // Main node SCNNode* planet = [SCNNode node]; planet.geometry = [SCNSphere sphereWithRadius:2]; planet.position = SCNVector3Make(0, -3, 5); // sub-node SCNNode* satellite = [SCNNode node]; satellite.geometry = [SCNSphere sphereWithRadius:0.4]; satellite.position = SCNVector3Make(4, 0, 0); [planet addChildNode:satellite]; [scene.rootNode addChildNode:planet]; I use a NSTimer to make some actions and some animations. In the timer event I do that: planetRotation += 0.1; planet.rotation = SCNVector4Make(0,1,0,