Three js PointerLockControls to hubs #5034
Unanswered
conradoandrade
asked this question in
Hubs Cloud Questions
Replies: 1 comment
-
For those with the same question, you should look into A-FRAME look controls To implement in Hubs you can do something like this. (Not sure if is the best way but it works) AFRAME.scenes[0].systems["hubs-systems"].characterController.avatarPOV.setAttribute('look-controls', 'pointerLockEnabled', true); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i was wondering how to add this functionality to hubs as a toggle shortcode.
https://threejs.org/docs/#examples/en/controls/PointerLockControls
Any ideias?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions