How to limit movement of a mated object?

In the picture, there is a long extruded rectangle and a slim one on top of it. In the assembly mode it is easy to mate the slimmer one to move on the long one. How to limit the movement so that the slimmer one would not move beyond the faces of the longer one but still move freely in between them?

Comments 0

2 Answers

use advanced mates > distance limit and choose your limits
see the picture

Comments 1