When the distance between X,Y and EX,EY is smaller than or equal to R1+R2, the collision between two circles occurs. The following formula yields the above-mentioned distance. SQR((EX-X)*(EX-X)+(EY-Y)*(EY-Y))