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?
Follow this question
Once you sign in you will be able to subscribe for any updates here