Adding a Distance Constraint
1
Add a Distance Constraint
Select an object, then add a Distance Constraint from the Constraints section of the Inspector.
2
Choose a target
Open the constraint’s fly-out menu and select the object to use as the target.
3
Move the target
Move the target to see the constraint affect the constrained object. By default, the Closer mode keeps it within the specified distance.