IcedDoggie / collisiondetectionkit

Automatically exported from code.google.com/p/collisiondetectionkit
0 stars 0 forks source link

get collisions #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
hello first of all great job with collision kit i love i really do.
but i ran in some problems i cant figure out what objects collide.
i trying to know when a collision happens and with what MovieClips. so the
collided MovieClips will do something.
basically how do know when a collision happens and what get collided. 
thanks u

Original issue reported on code.google.com by arkz...@gmail.com on 9 May 2009 at 12:50

GoogleCodeExporter commented 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