Chapter 22. Geometrical Algorithms
“Don't try to be like Jackie. There is only one Jackie.… Study computers instead.”
Point Inclusion Tests
Ray Intersection Tests
Point Versus Triangle Set Collision (BSP-Based)
Mesh Versus Mesh (Sweep and Prune Approach)
Computing a Convex Hull
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 ...