Change near-maxDistance to within-centerSphere