How to change an objects y position (raise and lower) relative to a separate objects rotation on the x axis?

Hi

I am attempting to recreate the functionality of a drill press. I need the levers rotation on the x axis to make the drill move up or down on the y axis but my research has come up short. If someone could at least point me in the right direction that would help a ton. Using C#. Could I use a joint? Im stuck. Thanks for any help.

In short, I need one objects rotation to change the y position of a different object

A drill press uses a rack and pinion to convert rotational movement into linear movement.

So I searched calculating rack and pinion rotation to linear movement and found these resources:

http://www.otvinta.com/rack.html