Suppose that an object $O$ moves in the plane $x,y$ along a path with respect to time $ t $ of the form $O (t) = (x (t), y (t)) = (2 \cos (t) , 2 \sin (t))$ and another $ P $ object while moving along a path $ P (t) = (z (t), w (t)) = (r \cos (t + r ), \sin (t + r)) $ with $ t $ and $ r $ real numbers.
How can I find the minimum and maximum distance between both objects as function of $r$.