Im trying to spawng a new point via mouse click,
it is simply as when a use clicks on an area it spawns a new point, if the clicked area is inside a circle, it will not create a new point, when it is outside and will have a collision on an existing point, i compute direction vector by getting the clicked point - collided circle center point, multiply by radius and create a circle on it.
![](https://uploads.gamedev.net/forums/monthly_2021_10/da5443a6a97047bda7f10e6e218bcae6.image.png)
My issue is if the clicked point collides in two circles, I can compute the new direction by summing the vectors of the two circle, but i am confuse on how to compute for the new position of the new circle.
![](https://uploads.gamedev.net/forums/monthly_2021_10/a3ef2b37a3f94deab4faf4ea898f5433.image.png)
Any suggestions? how can i compute for new position that is closest to the two cicle collided that also covers the the mouse clicked position, what is the most efficient way?