ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.07k stars 1.28k forks source link

Walking via treadmill or trackers - only possible by simulating trackpad/thumbstick? Or can we move HMD pose? #1831

Open asudyn opened 4 months ago

asudyn commented 4 months ago

Could anyone help me figure out the best way to make a driver? When creating a driver for DIY controller that would allow locomotion (treadmill or walk-in-place style), am I limited to just providing these inputs?

/input/joystick/x
/input/joystick/y
/input/trackpad/x
/input/trackpad/y

Or is there a better way to simulate walking? Like changing the actual position of an HMD pose? Or better yet some kind of general OpenVR way to provide locomotion?

All examples that I've found provide joystick+trackpad inputs but I wonder if that's a correct way to do this?

alex-freeaim commented 3 months ago

You may want to check out how OpenVR Advanced Settings is able to freeze the rotation of the HMD, as shown here: https://youtu.be/9INusykanzQ?si=7VLInr6tc3LI232Q

You might be able to use a similar method to move the HMD too.