Setting the Stage

SceneKit is set up much like a play in real life. When you go to see a play, from your seat you see a giant stage. This is represented in SceneKit by the SCNView. Currently there is nothing/no one on the stage, and there won’t be until the play starts. When you run the application, the actors will enter the stage. In SceneKit, the actors are called nodes, and they are represented with the type SCNNode. All the SceneKit stuff starts with the prefix SCN. Everything that is added is of type SCNNode. For the most part, each camera, light, and other object on the stage is represented by a SCNNode. (Well, this isn’t completely true, but it’s a good way to think about it. In reality, you have the SCNCamera to represent a camera, which ...

Get Learning Swift™ Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.