<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
  <head>
    <meta content='Rotor.x3d' name='title'/>
    <meta content='1 September 2004' name='created'/>
    <meta content='20 October 2019' name='modified'/>
    <meta content='Tay Yeong Kiang Winston' name='creator'/>
    <meta content='https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/HovercraftSnr6Singapore/Rotor.x3d' name='identifier'/>
    <meta content='Creates the motor rotor with touch sensor for rotating the blades.' name='description'/>
    <meta content='../../license.html' name='license'/>
  </head>
  <Scene>
    <WorldInfo title='Rotor.x3d'/>
    <Viewpoint description='Rotor Side View' orientation='0 1 0 1.57' position='10 0 0'/>
    <Group>
      <Transform DEF='ROTOR_TRANSFORM'>
        <Group DEF='Rotor'>
          <Shape>
            <Extrusion crossSection='1.00 0.00 0.92 -0.38 0.71 -0.71 0.38 -0.92 0.00 -1.00 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1.00 -0.00 -0.92 0.38 -0.71 0.71 -0.38 0.92 0.00 1.00 0.38 0.92 0.71 0.71 0.92 0.38 1.00 0.00' scale='0.2 0.2 0.15 0.15 0.1 0.1' spine='0 0 0.5 0 0 0.1 0 0 0'/>
            <Appearance>
              <Material ambientIntensity='0.0' diffuseColor='0.0 0.0 0.0' shininess='0.056122' specularColor='0.918367 0.910614 0.885116'/>
            </Appearance>
          </Shape>
        </Group>
        <Group DEF='Blade'>
          <Shape>
            <Extrusion crossSection='1.00 0.00 0.92 -0.38 0.71 -0.71 0.38 -0.92 0.00 -1.00 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1.00 -0.00 -0.92 0.38 -0.71 0.71 -0.38 0.92 0.00 1.00 0.38 0.92 0.71 0.71 0.92 0.38 1.00 0.00' orientation='0 1 0 0 0 1 0 1.2 0 1 0 1.5 0 1 0 1.7' scale='0.05 0.1 0.05 0.15 0.05 0.15 0.05 0.15' spine='0 0 0.1 0 0.6 0.1 0 2 0.1 0 2.5 0.1'/>
            <Appearance>
              <Material ambientIntensity='0.0' diffuseColor='0.0 0.0 0.0' shininess='0.056122' specularColor='0.918367 0.910614 0.885116'/>
            </Appearance>
          </Shape>
        </Group>
        <Transform rotation='0 0 1 1.57'>
          <Group USE='Blade'/>
        </Transform>
        <Transform rotation='0 0 1 -1.57'>
          <Group USE='Blade'/>
        </Transform>
        <Transform rotation='0 0 1 3.14'>
          <Group USE='Blade'/>
        </Transform>
      </Transform>
      <TouchSensor DEF='MyTouchSensor' description='click to start'/>
      <TimeSensor DEF='CLOCK' cycleInterval='4'/>
      <OrientationInterpolator DEF='RotorPathInterpolator' key='0 0.5 1' keyValue='0.0 0.0 1.0 0.0 0.0 0.0 1.0 3.14 0.0 0.0 1.0 6.28'/>
    </Group>
    <ROUTE fromField='touchTime' fromNode='MyTouchSensor' toField='set_startTime' toNode='CLOCK'/>
    <ROUTE fromField='fraction_changed' fromNode='CLOCK' toField='set_fraction' toNode='RotorPathInterpolator'/>
    <ROUTE fromField='value_changed' fromNode='RotorPathInterpolator' toField='set_rotation' toNode='ROTOR_TRANSFORM'/>
  </Scene>
</X3D>