O'Reilly logo

Mathematics and Physics for Programmers, Second Edition by Danny Kodicek, John Patrick Flynt

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 10. Detecting Collisions Between Complex Shapes

Overview

In life, you don’t see many perfect circles or rectangles colliding. Most objects have irregular shapes, and as you have seen in previous chapters, collisions between even regular shapes, such as ellipses, can be very difficult to compute. Consider, for example, what happens when a ball bounces on rough terrain. Even if the ball is smooth, the terrain is not, and as a result, your calculations must include general ways to determine points of contact.

In this chapter, you will look at ways to calculate the solutions to general collision problems involving irregularly shaped objects. As involved ...

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