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've been messing around with this poc and can't figure out the reason causing the problem.
Basically, I'm trying to allow users to switch seamlessly between PointerLockControl and OrbitControl, here's what i've tried, it might require opening in a new tab to allow PointerLock
The problem is that whenever switching back to OrbitControl from PointerLockControl, the camera jumps to a different position from the last position updated by the PointerLockControl.
What might be the cause? Am I missing sth here?
Or is it because sharing one camera (checked with uuid) between controls might have some side effects and not a good practice? if so, is there any solutions to enable this scenario since I googled and found nothing alike with r3f.
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.
-
Hi,
I've been messing around with this poc and can't figure out the reason causing the problem.
Basically, I'm trying to allow users to switch seamlessly between PointerLockControl and OrbitControl, here's what i've tried, it might require opening in a new tab to allow PointerLock
https://codesandbox.io/s/react-three-fiber-control-switch-test-68t9h?file=/src/App.js
The problem is that whenever switching back to OrbitControl from PointerLockControl, the camera jumps to a different position from the last position updated by the PointerLockControl.
What might be the cause? Am I missing sth here?
Or is it because sharing one camera (checked with uuid) between controls might have some side effects and not a good practice? if so, is there any solutions to enable this scenario since I googled and found nothing alike with r3f.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions