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 6. Transformations

KEY TOPICS

After all the discussion of how to work with matrices, you're finally ready to look at one of the most common uses of matrices in game programming: affine transformations. Transformations is really just a fancy word for moving objects around in your world. It encompasses movement such as forward and backward or up and down motion, scaling objects larger or smaller, and even rotating objects. The term affine indicates that the essential shape of the object being moved is preserved. This chapter first looks at how to apply the transformation in two dimensions, and then it extends the process to 3D. In the end, you'll be able to set up combos that ...

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