- Home /
VR: Manipulate Input for Continous Movement Provider // Create "Arm Swing Locomotion"
Hey there,
I am currently working on the locomotion system of my VR project. I am using an Oculus Quest 2.
At the moment I am using the Continuous Move Provider (action based) of the XR Interaction Toolkit. With the default settings, this enables me to walk around in my VR environment with the controllers joysticks.
Now I was wondering if I can change and manipulate the input for this. Instead of the joystick I would like to use the position of the controller as input. The Idea is to create a "natural movement" / "arm swing movement" from that, without the need of pushing any other button (just with movement of the controllers)
As far as I understand I would have to make a Vector2 from the X and Y (delta?) positions of the controller and feed this Vector2 into the Move Provider. In addition I would only have to allow to transfer positive movement of the controller into VR since otherwise I would be going forth and back endlessly.
Is this possible?
Would I have to make the changes in the InputActions or in the ActionBasedContinuousMoveProvider-Script?
I am happy for any help (pretty new to VR)!
Thank you :)