Chapter 9

Physics Game Framework

In this chapter we will build a basic game framework for a physics-based game. A physics game uses realistic models for such things as collisions, forces applied to game objects, behavior of game objects, and gravity. The goal is usually to destroy key objects and perhaps avoid destroying other key objects.

Probably the most famous physics game for the iOS platform, or any mobile platform for that matter, is Angry Birds. In Angry Birds the player throws birds at targets at a user defined angle. The level is complete when all the targets are destroyed. We develop a similar game in this chapter with the added benefit that the game is in 3D instead of 2D as in Angry Birds.

The basic physics game framework that ...

Get Beginning iOS 3D Unreal Games Development 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.