how to reset camera position on enter VR?

倾然丶 夕夏残阳落幕 提交于 2019-12-06 11:08:58

Use camera.userHeight to set a non-VR height.

<a-entity camera="userHeight: 1.6">

The camera in non-VR will be 1.6m high. In VR, this height will be removed. When going back out of VR, the 1.6m height will be re-applied.

https://aframe.io/docs/0.4.0/components/camera.html#vr-behavior

The <a-camera> and default cameras have this by default.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!