Skip to content
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

camera.getWorldDirection() behavior altered in WebXR #19891

Closed
paulmasson opened this issue Jul 21, 2020 · 2 comments
Closed

camera.getWorldDirection() behavior altered in WebXR #19891

paulmasson opened this issue Jul 21, 2020 · 2 comments

Comments

@paulmasson
Copy link
Contributor

In WebVR one could simply use camera.getWorldDirection() to find the direction in which the camera is pointed in VR. As of r113, in WebXR this same call returns information about the parent rig of the camera, rather than the camera, at least in Oculus browser on both Quest and Go.

The culprit is the line this.updateMatrixWorld( true ) in the function, because without it the correct camera information is returned. I can't see any recent changes in camera.updateMatrixWorld that would cause the change. Is this just expected behavior in WebXR vs WebVR? If so then camera.getWorldDirection is not useful in this context.

@Mugen87
Copy link
Collaborator

Mugen87 commented Jul 21, 2020

Duplicate of #18448.

@Mugen87
Copy link
Collaborator

Mugen87 commented Jul 21, 2020

Can you please verify if #19085 would solve the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants