You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just wanted to ask if you've seen an example of combining this with movement controls, such as using WASD or a Gamepad?
EDIT: it was easier than I thought. Just add something like the following inside requestAnimationFrame
pad=navigator.getGamepads()[0]
if pad
camera.translateXpad.axes[0]
camera.translateZpad.axes[1]
camera.translateYpad.buttons[0].value*-1+pad.buttons[1].value
The text was updated successfully, but these errors were encountered:
I do think we should explore adding WASD and Gamepad controls to the library (that can be enabled/disabled by the developer as required).
I'm happy to review pull requests if you are interested in contributing. Also, thank you for providing the basis of your research in to gamepad support in the edit to your post above!
Hi, Loving the VR. Thanks for the library.
Just wanted to ask if you've seen an example of combining this with movement controls, such as using WASD or a Gamepad?
EDIT: it was easier than I thought. Just add something like the following inside requestAnimationFrame
The text was updated successfully, but these errors were encountered: