1
Window / Collision Detection 2.0
« on: February 06, 2012, 07:19:14 pm »
I wouldn't throw away the bounding box approach either. Since collision detection is such a CPU intensive action it works well to use a mult-tier approach. Check for a collision with the bounding boxes first; if it returns a hit then run the check for a pixel collision on those objects to see if they are actually intersecting. This way you're not wasting processing time on checking for pixel perfect collisions when the objects aren't even near each other.