Corey O’Neil has written an Collision Detection Kit which could be usefull for several of my projects.
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. The Collision Detection Kit is available at http://code.google.com/p/collisiondetectionkit/downloads/list and on his Online Portfolio you can see various examples, and i must say that i’m very impressed!
0 Response to “Collision Detection Kit”