I have a collision detection class that works by finding the distance between the centres and whether that distance is small enough to be a collision (see Collision Detection error). My problem is trying to make this actually work, with ellipses colliding. I will explain more if necessary.
Thx
I have a collision detection class that works by finding the distance between the
Share
The best way would to implement per pixel collision detection when the images are overlapping you can read more about this in the following links
http://www.codeproject.com/KB/game/collision3.aspx
Per-pixel collision problem in C#
I also did a problem like this for a project a few years ago when I needed to detect if two circles overlapped where i used the following code
Not very nice code but I wrote it doing my first XNA game