Use compute_distance2boundary from move_packet