Partts to move with another part

How do i make a part move when another part comes in contact with it in a assembly drawing?

SolidworksAssemblies