We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description: I understand that getWorld* functions don't work in VR, and that a workaround was mentioned, but I still cannot seem to get it to work.
getWorld*
let worldPosition = new THREE.Vector3(); const camera = document.querySelector("#camera"); camera.object3D.updateMatrixWorld(); camera.sceneEl?.object3D.updateMatrixWorld(); worldPosition.setFromMatrixPosition(camera.object3D.matrixWorld); console.log(worldPosition); // Always returns (0, 0, 0) in Oculus Quest 2 VR
The text was updated successfully, but these errors were encountered:
Can you provide runnable example to reproduce? I recommend https://glitch.com/edit/#!/aframe
Sorry, something went wrong.
An example printing the world position https://glitch.com/edit/#!/momentous-foremost-game?path=world-position.js%3A7%3A0
As far as I can tell A-Frame works as expected. For usage questions I recommend using https://stackoverflow.com/questions/tagged/aframe
I'm closing this and can reopen if necessary. Best of luck
I also recommend using A-Frame 1.3.0
No branches or pull requests
Description: I understand that
getWorld*
functions don't work in VR, and that a workaround was mentioned, but I still cannot seem to get it to work.The text was updated successfully, but these errors were encountered: