una cosa importante
la distancia no es desde el origen, es desde el lado mas cercano al objeto, el borde, no el origen.
CitarThis function calculates the distance from the edge of the bounding box of the calling instance to the nearest edge of the nearest instance of the object specified.
la distancia no es desde el origen, es desde el lado mas cercano al objeto, el borde, no el origen.