在智能手机中进入VR模式时,摄像头总是会改变位置



我需要将我的相机放在后面。但每次我在智能手机中进入VR模式时,相机总是向前移动。如何解决这个问题?

这是我使用的相机代码

<a-entity camera look-controls wasd-controls position="0 1 2">
<a-cursor
fuse="false"
geometry="primitive: ring; radiusInner: 0.01; radiusOuter: 0.016"
material="color: #efdf02"
position="0 0 -1"></a-cursor>
</a-entity>>

创建并定位一个包裹相机的实体(又名相机装备(:

<a-entity position=“0 1 2”>
<a-entity camera look-controls></a-entity>
</a-entity>

最新更新