Collision detection, the problem of knowing when two objects in a game or simulation touch, is covered very thoroughly. This reference reaches well beyond its title, covering data structures for 2D and 3D space and even how to make code friendly to the processor's memory. Examples are in C++, but the ideas carry over to any 3D work. One reservation: capsule shapes are left largely to intuition, which suits people who struggle to picture geometry less well.