# Is there a way to avoid overlapping or intersection for randomly distributed objects with Animation Nodes?

I distrubuted objects with instancer and the loop function see below:

As we can see the problem is they are overlapping occasionally. Of course, the more object I distribute the more likely they overlap. My first idea was to use the Intersect Plane Plane node but I didn't know how to incorporate it into the graph. To avoid overlapping we should also measure distance between objects to limit the calculations (only adjacent objects matters) because otherwise the node graph could be very slow. So the soulution might be very comlex.

The current graph can be seen below:

• @Prag Your multiply node that goes into the diameter is set to 1, set it to 2. The radius input in the Find Points in Radius is the radius of the search circle, and since we are testing collision between two circles, that is, two radii, that is, a diameter. Then the radius is the diameter. Don't worry yourself with naming. – Omar Emara Mar 13 '18 at 19:35