O'Reilly logo

Foundation HTML5 Animation with JavaScript by Billy Lamberta

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

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. ...

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