circle-circle collision
Collision between circles is easy. Imagine there are two circles: C1 with center (x1,y1) and radius r1; C2 with center (x2,y2) and radius r2. Imagine there is a line running between those two center points. The distance from the center points to the edge of either circle is, by definition, equal to their respective radii. … Read more