Chapter 22. Geometrical Algorithms


“Don't try to be like Jackie. There is only one Jackie.… Study computers instead.”

 --Jackie Chan


  • Point Inclusion Tests

  • Ray Intersection Tests

  • Moving Tests

  • Point Versus Triangle Set Collision (BSP-Based)

  • Mesh Versus Mesh (Sweep and Prune Approach)

  • Computing a Convex Hull

  • Triangle Reduction

  • In Closing

This chapter is devoted to providing you with a collection of useful geometrical tests for computer games. Most of it deals with the subject of collision detection and response, which is of extreme importance for almost any game. However, there are many more techniques to explore. We need to detect the room the player is standing in, compute the sound propagation, and explore a myriad of other tests we will end ...

Get Core Techniques and Algorithms in Game Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.