i have three *bidimensional* elements, each of them with x and y coordinates.
I'd like to be able to detect when two of them get closer than a certain distance, and then send a bang.
Right now i'm using a web of [if].
I take every couple of x and y coordinates and process them. like this: [if $1-$2 < mythreshold && $1-$2 >0 then bang], but it seems to be a (very) dumb approach, and never ending...
anybody has an idea?