global func ObjectDistance(obj1, obj2) { var dx = GetX(obj1) - GetX(obj2); var dy = GetY(obj1) - GetY(obj2); return(Sqrt(dx*dx+dy*dy)); }
ObjectDistance