Setting limits on entity movement


Hi, how might we set limits on entity movement, for example a desk drawer that should only slide on Z axis and stop (not slide all the way out).

first i would like to test dragging with mouse button, but then test with Vive controllers. (please explain it simple, I am new to HF)