© James Goodwill and Wesley Matlock 2017

James Goodwill and Wesley Matlock, Beginning Swift Games Development for iOS, 10.1007/978-1-4842-2310-9_11

11. Scenes and Nodes

James Goodwill and Wesley Matlock2

(1)Highlands Ranch, Colorado, USA

(2)Kansas City, Missouri, USA

In this chapter, you’ll learn how SceneKit uses the scene graph to render the objects in the scene. Once you have an understanding of the scene graph, you’ll then see how to use the built-in models from SceneKit. You’ll 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 The SCNScene is the base for a tree structure of the scene graph, as shown in Figure 11-1. In the early days of graphic programming, ...

Get Beginning Swift Games Development for iOS: Develop 2D and 3D games Using Apple's SceneKit and SpriteKit 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.