O'Reilly logo

Beginning Math and Physics for Game Programmers by Wendy Stahler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Energy

KEY TOPICS

Have you ever gotten on a roller coaster and noticed that after the car was carried up the first hill, there were no more motors to speed you up? In addition, did you notice that there were no brakes to slow you down until the very end of the ride? And yet the speed kept changing the whole time. That is the power of mechanical energy.

This chapter examines energy as an alternative approach to modeling motion. Depending on the type of game, this might or might not be more efficient, but it's always good to have options.

NOTE

The morph ball in Metroid Prime uses this to outstanding effect.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required