384 Chapter 14 Collision Resolution
Fo r several hundred contacts between tightly packed objects, it became significantly
faster.
For the simulations I come across in the games I’m involved with, it simply isn’t
worth the extra development effort—I’d rather save having the extra pointers hang-
ing around in the contact an d rigid-body data structures. You may come across sit-
uations where the scale of the phy sics you are working with makes it essential. For
anything in game development, it is essential to profile your c ode before trying to
optimize it.
14.5 Summary
Collision resolution involves some of the most complex mathematics we’ve dis-
cussed so far. For a single con tact, we do it in two steps: resolving the inter-
penetration between object ...