| ||
What well cover in this chapter:
Collision detection methods
Built-in hitTest
Distance-based collision detection
Multiple-object collision detection strategies
Important formulas in this chapter
As youve progressed through the book to this point, youve seen how to make objects move and make them interact with the space they occupy. Now, youre 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, Ill attempt to cover just about everything you need to know about detecting collisions. This includes hit testing between two movie clips, hit testing between a movie clip and a point, distance-based collision detection, and multiple-object collision testing strategies. First, lets see what options are available for collision detection.
| ||