Chapter 11
Building the Scene
In the previous chapter, you learned some of the basics of Scene Kit. I covered how a scene is created using SCNNodes and showed a basic tree structure of those nodes.
In this chapter, you will learn how Scene Kit uses the scene graph to render the objects in the scene. Once you have an understanding of the scene graph, you will then see how to use the built-in models from Scene Kit. You will use the models to make obstacles in your game for the hero to avoid and for the enemy to hide behind.
Scene Graph
Basically, the scene graph is just a collection of data structures used to manage and organize the scene data. The SCNScene is the base for a tree structure of the scene graph, as shown in Figure 11-1. In the ...
Get Beginning Swift Games Development for iOS 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.