images

Chapter 9

Collision Detection

What we'll cover in this chapter:

  • Collision detection methods
  • Geometric hit testing methods
  • Distance-based collision detection
  • Multiple-object collision detection strategies

As you've progressed through the book, you've seen how to make objects move and make them interact with the space they occupy. Now, you're going to make these objects interact with each other. For the most part, this will involve determining when two objects have touched each other. This is a subject known as collision detection or hit testing.

This chapter will attempt to cover just about everything you need to know about detecting collisions. ...

Get Foundation HTML5 Animation with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.