Distance between 2 points in 3 dimensional space is
D = SQR[(x1 - x2) ^ 2 + (y1 - y) ^2 + (z1 - z2) ^2]
No cubes in there. Seems like there should be as there's 3 dimensions, but it doesnt work that way.
I think the idea would be to get rid of the duplicate mobs throughout the zone, not just ones close together though, so cleaning them out based on distance might not do a whole lot for you.
|