aframe-click-drag-component/examples/children/index.html
2016-11-05 15:52:46 +11:00

25 lines
792 B
HTML

<html>
<head>
<title>A-Frame Click & Drag Component - Basic</title>
<script src="../build.js"></script>
</head>
<body>
<a-scene>
<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-enabled="false" keyboard-controls="mode: fps">
<a-sphere click-drag position="0 0.5 -4" radius="1.25" color="#EF2D5E">
<a-box click-drag position="-1 0.5 1" rotation="0 45 0" width="1" height="1" depth="1" color="#4CC3D9"></a-box>
</a-sphere>
</a-camera>
</a-entity>
</a-scene>
</body>
</html>