O'Reilly logo

Foundation ActionScript 3.0 Animation: Making Things Move! by Keith Peters

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 9. COLLISION DETECTION

What we'll cover in this chapter:

  • Collision detection methods

  • Built-in hit testing methods

  • Distance-based collision detection

  • Multiple-object collision detection strategies

  • Important formulas in this chapter

As you've progressed through the book to this point, you've seen how to make objects move and make them interact with the space they occupy. Now, you're going to delve into making 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.

In this chapter, I'll attempt to cover just about everything you need to know about detecting collisions. This includes hit testing between two sprites, ...

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