What should I do here?

I can't mate those two parts

Accepted answer

The outer face/surface of the cam has to be one continuous face/surface, and the best way to do that is to use the "Fit Spline" feature that converts any sketch entities (lines & arcs) into one continuous spline.

Extruding that final spine will then give you a solid body with one continuous face that goes all around the body.


1 Other answer

You're looking for the Cam mate under "Mechanical Mates". It will require a cam path and a follower to complete the mate. I like to use an extruded surface for the cam path that I can hide later.