Circle to Circle collision, checking each circle against all others
- by user14861
I'm currently coding a little circle to circle collision demo but I've got a little stuck. I think I currently have the code to detect collision but I'm not sure how to loop through my list of circles and check them off against one another.
Collision check code:
public static Vector2 GetIntersectionDepth(Circle a, Circle b)
{
float…