separate ranged unit distance calculation (no need for path)