Closed GoogleCodeExporter closed 8 years ago
You can check for collisions by calling the checkCollisions() method. If any
collisions are occuring while you do the check, then it will return an array
containing each collision (or an empty array if there are no collisions). Each
array item is an Object which contains information about the collision (the two
objects that collided, the amount of overlap, and the angle of the collision if
you're set up to calculate it).
All of this is covered in the documentation, which can be found here:
http://www.coreyoneil.com/Flash/CDK/documentation/
Some simple examples of checking for collisions and retrieving information
about the
collisions can be found in the docs here:
http://www.coreyoneil.com/Flash/CDK/documentation/CollisionList.html#Examples
Original comment by lessthan...@gmail.com
on 15 May 2009 at 8:00
Original issue reported on code.google.com by
arkz...@gmail.com
on 9 May 2009 at 12:50