New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set the viewer (camera) startposition in AR/VR #304
Comments
You can set the XR position with player, not sure yet how to just have it match the Canvas camera
|
Thanks, I didn't know useXR()... before I tried const { camera } = useThree(); but that is not available in VR/AR mode. Isn't useXR a hook that should refresh itself? Since this is showing
manually retrieving the player.position like this also didn't help.. it stays: 0
|
Hello @chillbert, |
Is there a way to set the camera position when AR session is starting? Preferably to the same as the non-AR session position. In this example I am setting the camera 2 units in front of the model (0,0,0) - in the non-AR session it looks good, as soon as I start the AR, the camera jumps to 0,0,0.
The text was updated successfully, but these errors were encountered: