Collision detection is the math, art, science, or general guesswork used to determine whether some object has hit another object. This sounds pretty simple, but when you are dealing with objects that exist only in a computer's memory and are represented by a collection of various properties, some complexities can arrive.

The basic methods of collision detection are covered in Foundation ActionScript 3.0 Animation: Making Things Move! (hereafter referred to as Making Things Move). This chapter looks at one method of collision detection that wasn't covered in that book and a strategy to handle collisions between large amounts of objects.

Note that the subject of collision detection does not delve into what ...

Get AdvancED ActionScript 3.0 Animation 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.