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 2. Geometry Snippets

KEY TOPICS

This chapter addresses all the geometry topics that appear throughout the book. In fact, this collection of geometric methods can be used in nearly every game programming challenge you are likely to encounter. The Pythagorean theorem surfaces whenever you use vectors to control movement or when you use right triangles to model various scenarios. The distance formula is used in both collision detection and the physics of motion. Parabolas are used to represent projectile paths in 2D and 3D motion. Finally, circles and spheres are used to model round objects and motion paths, ...

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