474 Chapter 18 Physics in Two Dimensions
mak es to our collision detection, and we get performance improvements that are at
least an order of magnitude in size. This seems to be a slam-dunk argument for 2D
physics.Butwesawthatthelowerflexibilityina2Dengineisn’tidealinmanygames.
A large number of 2D games still use a 3D physics engine.
18.9 Projects
Mini-Project 18.1
Modify the fireworks demo fr om Chapter 4 so that it operates in 2D. You will need to
change the underlying phy sics engine to make this work, so it would be wise to make
a separate copy or branch of the source code.
Mini-Project 18.2
Modify the platform demo from Chapter 8 so that it operates in 2D. As in the previous
ex ercise, you will need to make modifications to the Cy clone engine