I would like to know the best or most efficient way to test for 2D collision.
I am currently using AABBs, but the problem with this, is that your objects will be hitting things when they shouldn't. On top of this, AABBs cannot be rotated.
I was considering using per pixel collision, but I feel that it would lag on large bitmaps, since there would be a lot of pixels to check.
What I would like to know, is how I can allow my bounding boxes to be rotated, and use any polygon instead of just rectangles for collision. Also, is there a way of creating circular collision bounds that aren't just approximations of circles?
atan2()
for circle vs. circle? \$\endgroup\$