Aframe 如何在Frame 0.9.0中使用触摸、拖动和挤压进行放大和缩小

Aframe 如何在Frame 0.9.0中使用触摸、拖动和挤压进行放大和缩小,aframe,Aframe,我想用0.9.0使用触摸、拖动和挤压来放大和缩小 以下代码适用于框架0.3.0,但在此处不完全可见,但 这里是代码 <html> <head> <title>A-Frame Click & Drag Component - Basic</title> <script src="https://jesstelford.github.io/aframe-click-drag-compon

我想用0.9.0使用触摸、拖动和挤压来放大和缩小

以下代码适用于框架0.3.0,但在此处不完全可见,但 这里是代码

    <html>
      <head>
        <title>A-Frame Click & Drag Component - Basic</title>
        <script src="https://jesstelford.github.io/aframe-click-drag-component/build.js"></script>
      </head>
      <body>
        <a-scene>

          <a-sphere look-controls click-drag position="0 1.25 -1" radius="1.25" color="#EF2D5E"></a-sphere>
          <a-box click-drag position="-1 0.5 1" rotation="0 45 0" width="1" height="1" depth="1"  color="#4CC3D9"></a-box>
          <a-cylinder click-drag position="1 0.75 1" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder>
          <a-plane rotation="-90 0 0" width="4" height="4" color="#7BC8A4"></a-plane>

          <a-sky color="#ECECEC"></a-sky>

          <a-entity position="0 0 3.8">
            <a-camera look-controls keyboard-controls="mode: fps"></a-camera>
          </a-entity>
        </a-scene>
      </body>
    </html>


A形框架单击并拖动组件-基本

所以这是0.3.0代码,但您在寻找0.9.0代码吗?您是否尝试过在0.9.0中编写一些用于缩放/触摸和拖动的内容?如果是,你能把它加在这里吗?我尝试为对象添加a-frame 0.9.0的wasd控件,但它仅限于桌面,因为wasd控件无法从Phone完成。这是0.3.0代码,但您在寻找0.9.0代码吗?您是否尝试过在0.9.0中编写一些用于缩放/触摸和拖动的内容?如果是,你能把它加在这里吗?我尝试为该对象添加a-frame 0.9.0的wasd控件,但它仅限于桌面,因为wasd控件无法通过手机完成