i have been able to successfully measure the closest distance to non similar objects.. can anyone point me on the right path to find the nearest similar object's distance?
For instance you have 5 eggs randomly on the screen and you want to have an instance variable for each egg that is aware of the nearest other egg. How could I do that?
distance does not play nice with 'this.x,this.y" In my example CAPX it always chooses itself as the closest.
Heuristic that worked for non-similar objects
Not working: (SEE CAPX)