I am trying to master SceneKit and as an example, I thought I would try to build a solar system using the SDK. I can add SCNode objects and adjust its material properties, such as pattern and lighting. In addition, I can rotate the planets, but I cannot understand how I can “rotate” them in a certain way.
My code looks like this:
I read somewhere in AppleDocs that you need to add planets to the coordinate system of the Sun, and not to the root directory of the node, but I'm not sure if I understood this correctly.
Let me know how you do it.
source share