可以说我有一个圆柱体模型,我加载到我的webvr场景中。我怎样才能使物体坚实?即用户(摄像机视图)不能在对象内取任何位置,也不能在对象内移动。我怎样才能做到这一点?防止相机通过'相框对象'
<a-scene>
<a-assets>
<a-asset-item id="cube-obj" src="cube.obj"></a-asset-item>
</a-assets>
<a-entity id="cameraWrapper" position="0 2 10" rotation="0 0 0">
<a-camera near="0.1" user-height="0" id="camera" listener></a-camera>
</a-entity>
<a-entity obj-model="obj: #cube-obj; mtl: #cube-mtl" scale="1 1 1" rotation="-90 0 0"></a-entity>
<a-plane position="0 4 4" rotation="-90 0 -90" width="4" height="4" color="#7BC8A4"></a-plane>
<a-sky color="#ECECEC"></a-sky>
</a-scene>
我建议删除这个问题的编辑,以保持它对未来的读者专注和相关。有关使用'aframe-physics-system'的帮助,请随时在GitHub上打开一个问题。 :) –