Edit: I specify that the yellow piece is flexible in the same direction of travel as the green piece, and therefore that basically the 3 lower vertices of the green one are potential contact points and must be able to determine its position on the surface of the yellow piece.
I'm going to need lessons to understand these 2 constraints... Came seems to be what I need but no way to select " valid entities"... I don't understand what he wants. Trajectory is not better, even when I manage to configure the parameters to validate without error, my components become completely frozen...
The problem is I have the impression that it's not possible with my piece and its profile... From the little I understand, all the faces must be tangent. Except that my part is not a simple extruded profile, and if I have to have fun rounding each edge... Especially since the green coin won't go all the way around, I just want it to slide on " one " side.
The cam constraint will not be suitable since it requires tangent connections. On the other hand, the trajectory is a solution, if the proposed illustration is accurate.
You will only have to generate a sketch with the offsets that go well on some entities (12 mm on the figure below)...
For a cam constraint you need a closed profile, without sharp angles. And for the cam profile you need a part of a circle. Example: So either modify the profile of the part or start with a trajectory constraint. (see @m_blt's reply)
Let's say that where it gets a little complicated is that the " dents " are actually on flexible " tabs " that need to be pinched to be able to dislodge and slide the part. The " counter-cam " must therefore follow the deformation of the profile before sliding on its surface.
It's a bit tricky to draw a trajectory on a flexible profile, isn't it?