drmcnellis / collisiondetectionkit

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

Ignore same object #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to prevent the return of collisions between the same
object types.

Example:
Right now I'm designing a basic shootemup game in flash.  I'm checking for
collisions between bullets and enemies.  Since some of these enemies can
over lap, they are being returned as a collision.  Also, there may be times
when bullets overlap.  I would like to prevent checkCollisions from
returning these cases.

I would think this could just be done with a property; then a simple if
statement to compare the two objects before we actually collision test them.

I'm looking to see if I can implement this myself, but perhaps others would
like this as well?

Original issue reported on code.google.com by Kremn...@gmail.com on 27 Nov 2009 at 3:56