Motion Controller Pitch Range
I'm currently trying to use a Vive Motion Controller to emulate flightstick style controls. I'm trying to get them to work as follows:
With the controllers held straight upwards, the pitch should be 0 and when tilted forwards or backwards the pitch should be between 1 and -1.
My problem is that the values returned from GetWorldRotation or GetHandPositionAndOrientation go from 0 (controller tilted forward 90 degrees) to 90 (controller facing upwards) back to 0 (controller tilted backwards 90 degrees).
How would I go about getting a full 180 degree range of values from the controller?
asked Sep 19 '16 at 01:06 PM in VR
What I would do is define a direction as up. Either by using an invisible arrow component or something, or simply defining a vector in code. Then I use the dot product between the stick forward vector and the base position vector. By doing so you can get a full range of values from 180 to -180.
answered Sep 19 '16 at 01:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here