<!DOCTYPE html>
<html>
  <head>
    <title>Interactions - 07 - Change shape</title>
    <script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
    <script src="https://unpkg.com/aframe-environment-component/dist/aframe-environment-component.min.js"></script>
    <script src="https://unpkg.com/aframe-event-set-component/dist/aframe-event-set-component.min.js"></script>
  </head>
  <body>
    <a-scene cursor="rayOrigin: mouse">
      <a-entity environment="preset: goldmine; dressingAmount: 20"></a-entity>

      <a-box
        position="-1 1.6 -2"
        color="red"
        event-set__click="geometry.primitive: circle; geometry.radius:0.5"
      ></a-box>

      <a-box
        position="1 1.6 -2"
        color="green"
        event-set__click="geometry.primitive: cylinder; geometry.radius:0.3"
      ></a-box>

      <a-camera>
        <a-cursor></a-cursor>
      </a-camera>
    </a-scene>
  </body>
</html>