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
I am using DeviceOrientationControls to add controls in my scene. It is working well just by using the Drei component but I want to have more control on it. The next step I got was to use something like this and use the ThreeJs implementation that I saw in the discussion here (Thanks again). I'd like to limit the movement axis on X only, and maybe add some movement on Y but I am stuck by just limiting on X.
I understand that controls take over the controls on Camera but whatever I change, the device still moving everywhere... am I missing something ? Or the DeviceOrientationControls doesn't allow those anymore?
If you have any hint, I'd be glad to take it
Thanks
EDIT:
Sorry I am maybe not really expressing my concerns well. my question is more related to the controls.current.object.quaternion.set()
Is it the correct way ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello !
I am using DeviceOrientationControls to add controls in my scene. It is working well just by using the Drei component but I want to have more control on it. The next step I got was to use something like this and use the ThreeJs implementation that I saw in the discussion here (Thanks again). I'd like to limit the movement axis on X only, and maybe add some movement on Y but I am stuck by just limiting on X.
I understand that controls take over the controls on Camera but whatever I change, the device still moving everywhere... am I missing something ? Or the DeviceOrientationControls doesn't allow those anymore?
If you have any hint, I'd be glad to take it
Thanks
EDIT:
Sorry I am maybe not really expressing my concerns well. my question is more related to the
controls.current.object.quaternion.set()
Is it the correct way ?
Beta Was this translation helpful? Give feedback.
All reactions