Use the Constrain command to place a Transitional constraint between assembly components.
A Transitional constraint maintains tangency between a (typically) cylindrical face and a contiguous set of faces on another part, such as a cam in a slot. You can slide the component along open degrees of freedom.