Flash Player Required

Get Adobe Flash player

Collision Detection Kit

Flash Player Required

Get Adobe Flash player

The Collision Detection Kit is a package of classes for pixel-precise, shape-based collision detection for all display objects. It is written in Actionscript 3.0 and meant for Flash Player version 9 and higher. The kit comes with several features to control how collisions are detected, and provides data for the user of the kit so they can do something about the collision. Features include setting alpha thresholds and color exclusions, retrieving information on the pixels involved in the collision, and a returned angle of collision calculated from the shapes of the display objects at the site of the collision.

Click through the examples on the left to see it in action. For a detailed listing of the kit's capabilities, please see the documentation linked below. The kit is free to use and licensed under the MIT license.