This took me hours of work, so please ♥ it or fav it. -grab the white dots to interact! -triple double click the flag ok? :) _______________________________________________________ -The math: -first of all, i had to find the midpoint between the two dots. -then, I calculate the slope of the line the two dots create. (y2-y1)/(x2-x1) -I multiply -1 with the reciprocal slope to get the line in which the center of circles rest on. -the distance from the supposed center of the circle to one of the dots is the radius. sqrt(((y1-y2)(y1-y2))+((x1-x2)(x1-x2)))-distance formula -since the script only gives a random x position, the project calculates the ypos by finding the midpoint of the line created by the two dots, and aligning the supposed ypos of the center of the circle by using the slope formula. - cy = -1((-slope*(midx-cx))-midy)
Music by @OfficialVexento ! -This might look simple, but it`s not.(for me, at least) _______________________________________________________ -The math: -first of all, i had to find the midpoint between the two dots. -then, I calculate the slope of the line the two dots create. (y2-y1)/(x2-x1) -I multiply -1 with the reciprocal slope to get the line in which the center of circles rest on. -the distance from the supposed center of the circle to one of the dots is the radius. sqrt(((y1-y2)(y1-y2))+((x1-x2)(x1-x2)))-distance formula -since the script only gives a random x position, the project calculates the ypos by finding the midpoint of the line created by the two dots, and aligning the supposed ypos of the center of the circle by using the slope formula. - cy = -1((-slope*(midx-cx))-midy)