gpt4 book ai didi

javascript - teleport-controls 在 VR 模式下的 Aframe 0.8.2 下不起作用

转载 作者:行者123 更新时间:2023-12-03 01:16:57 25 4
gpt4 key购买 nike

aframe 0.8.2 下使用 teleport-controls 时出现问题。在 Vive 的 VR 模式下,仅显示触摸 Vive Controller 触控板后的曲线。但相机的位置没有移动。平面模式下,显示曲线并移动相机位置。

https://glitch.com/edit/#!/join/21f0cfd9-2fa0-49f3-910b-aedb91df3d3b

<a-scene background="color: #ECECEC">
<a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9" shadow></a-box>
<a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E" shadow></a-sphere>
<a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D" shadow></a-cylinder>
<a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4" shadow></a-plane>

<a-entity id="left-hand"
vive-controls="hand: left"
teleport-controls
>
</a-entity>

<a-entity id="right-hand"
vive-controls="hand: right"
teleport-controls
>
</a-entity>

也许有人对此有想法?

最佳答案

我会将其与相机装置一起使用,按照文档中的建议将手和头组合在一起。

<a-entity id="cameraRig">
<!-- camera -->
<a-entity id="head" camera wasd-controls look-controls></a-entity>
<!-- hand controls -->
<a-entity id="left-hand" teleport-controls="cameraRig: #cameraRig; teleportOrigin: #head;"></a-entity>
<a-entity id="right-hand" teleport-controls="cameraRig: #cameraRig; teleportOrigin: #head;"></a-entity>
</a-entity>

关于javascript - teleport-controls 在 VR 模式下的 Aframe 0.8.2 下不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51968577/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com