Chapter    13

Animating Your Models

In the previous chapter, you set up your objects with lighting and materials. You also found out how the camera interacts within the scene. In this chapter, you will see how Scene Kit and your objects are able to move around using animation.

If you have done any work using CoreAnimation, you will be happy to know that Scene Kit is fully integrated with it. In Scene Kit, just about everything can be animated by adding an animation to the node. In the first part of the chapter, you will do some code cleanup. You will then take a look at animating your obstacles using a simple animation, and finally you will look at a couple of advanced ways to animate your objects.

CoreAnimation is not covered as part of this ...

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.