
01-12-2004, 01:24 AM
|
 |
Mostly Absent
* Expert *
|
|
Join Date: Jun 2002
Location: Christchurch, New Zealand
Posts: 2,006
|
|
Depends what shapes you're using. Rectangular is usually the easiest, and with the IntersectRect api it's usually the fastest too. You could do circular collision detection, where basically you calculate the distance between the two centers of the objects, and if the sum of their "collision area" radius's is greater than the distance, assume a collision. Otherwise the only option left that I can think of is pixel perfect collision detection.
|
__________________
Sometimes it happens feelings die, Whole years are lost in the blink of an eye
We once had it all but event conspired, Sometimes
Now that it's over, it is through, It gets me everytime I think of you
Sometimes It happens, feelings die, Sometimes
|