Hi I'm trying to use dist in 20 ellipses with pvector position to make them collide.
They all have the same size: 10,10
My friends said I must create a "for" inside a "for" to read the all dists and then invert the speed when the distance between two ellipses is smaller than the sum of their radii
I tried something like this but it says I'm duplicating the local variable milkpudding.
for (int milkpudding = pudding; milkpudding < 20; milkpudding++) {
for (int milkpudding = pudding+1; milkpudding < 20; milkpudding++) {