How do I rotate a lever like a joystick with only pitch and roll?

I’m trying to rotate a control stick in a plane toward a point in space - a VR motion controller. So I have 2 vector positions - root of the control stick, and motion controller. Using this I can approximate the user moving the control stick. It’s like a lever, but in 2 axes.

I’m trying to figure out the best way to rotate the control stick. When I use MakeRotFromX, or Look Rotation, it pitches properly, but it yaws / rotates around Z. A real control stick only has Roll and Pitch. So it leans forward/backward, and left and right, but doesn’t spin or rotate on Z.

What is the right way to have the control stick pitch forward toward the motion controller, and roll left/right toward the motion controller?




I am making a crafting bench “lever” but this should work the same with a few adjustments needing to be made. as for the pitch and roll only i wouldnt know unless you knew the mathematical equation instead of using a find look at rotation. hope it helps a touch :smiley: