how to create 2D collision detection

Posted by Aidan Mueller on Game Development See other posts from Game Development or by Aidan Mueller
Published on 2012-02-20T04:20:57Z Indexed on 2012/03/24 17:38 UTC
Read the original article Hit count: 412

Filed under:
|

I would like to know the best or most effective way to test for 2D collision.

I also can do AABBs but when you have a line, for example, that is rotated 45º, and it is really long. it will be hitting things when it shouldn't.

I might be able to go through the pixels to see if they are touching others, but that might be slow if I had a big picture. and it might add some complications if I had a movie clip made of several images.

How do I check collision between two Images? How would I do circle to box? Please help : )

PS: I do know java so you can write with java syntax and then use a made up GL

© Game Development or respective owner

Related posts about 2d

Related posts about collision-detection