<?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='Interchange' 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='CH53eSimple.x3d' name='title'/>
    <meta content='Jeff Lark' name='creator'/>
    <meta content='20 September 2000' name='created'/>
    <meta content='20 October 2019' name='modified'/>
    <meta content='Simple helicopter model.' name='description'/>
    <meta content='https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/CH53UnitedStates/CH53eSimple.x3d' name='identifier'/>
    <meta content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit' name='generator'/>
    <meta content='../../license.html' name='license'/>
  </head>
  <Scene>
    <WorldInfo title='CH53eSimple.x3d'/>
    <Group>
      <Transform rotation='1 0 0 -1.57' translation='0 5 0'>
        <Group>
          <Transform DEF='Rotor_System'>
            <Transform DEF='RotorBlade' scale='9 0.65 0.2' translation='15 0.2 0'>
              <Shape DEF='Blade1'>
                <Box/>
                <Appearance>
                  <Material diffuseColor='0.5 0.3 0.8'/>
                </Appearance>
              </Shape>
              <Transform DEF='Blade_Root' rotation='0 0 1 1.5702' scale='0.7 0.4 0.4' translation='-1. 0.2 0'>
                <Shape DEF='BladeRoot'>
                  <Cylinder height='0.7'/>
                  <Appearance>
                    <Material emissiveColor='0.5 0.5 0.5'/>
                  </Appearance>
                </Shape>
              </Transform>
            </Transform>
            <Transform DEF='Blade2' rotation='0 0 1 0.8'>
              <Transform USE='RotorBlade'/>
            </Transform>
            <Transform DEF='Blade3' rotation='0 0 1 1.79'>
              <Transform USE='RotorBlade'/>
            </Transform>
            <Transform DEF='Blade4' rotation='0 0 1 2.69'>
              <Transform USE='RotorBlade'/>
            </Transform>
            <Transform DEF='Blade5' rotation='0 0 1 3.59'>
              <Transform USE='RotorBlade'/>
            </Transform>
            <Transform DEF='Blade6' rotation='0 0 1 4.48'>
              <Transform USE='RotorBlade'/>
            </Transform>
            <Transform DEF='Blade7' rotation='0 0 1 5.48'>
              <Transform USE='RotorBlade'/>
            </Transform>
            <Transform>
              <Transform DEF='RotorHub' rotation='1 0 0 1.5702'>
                <Shape>
                  <Cylinder height='1.5' radius='4.6'/>
                  <Appearance>
                    <Material/>
                  </Appearance>
                </Shape>
                <Transform translation='0 1.5 0'>
                  <Shape>
                    <Cone bottomRadius='4' height='1'/>
                    <Appearance>
                      <Material diffuseColor='0.4 0.6 0.5'/>
                    </Appearance>
                  </Shape>
                </Transform>
              </Transform>
              <Transform DEF='RotorMast' rotation='1 0 0 1.5702' translation='0 0 -1'>
                <Shape>
                  <Cylinder height='4' radius='0.8'/>
                  <Appearance>
                    <Material emissiveColor='0.5 0.7 0.3'/>
                  </Appearance>
                </Shape>
              </Transform>
            </Transform>
          </Transform>
          <Transform DEF='TailRotor' rotation='1 0 0 1.57' translation='4.5 34 2.5'>
            <!-- Tail rotor and blades 1/4 size MR and rotated -20 deg in Z axis -->
            <Transform DEF='Tail_Blade' rotation='0 0 1 1.5702' scale='0.25 0.25 0.25'>
              <Transform USE='RotorBlade'/>
            </Transform>
            <Transform rotation='0 0 1 3.14' scale='0.25 0.25 0.25'>
              <Transform USE='RotorBlade'/>
            </Transform>
            <Transform rotation='0 0 1 4.71' scale='0.25 0.25 0.25'>
              <Transform USE='RotorBlade'/>
            </Transform>
            <Transform scale='0.25 0.25 0.25'>
              <Transform USE='RotorBlade'/>
            </Transform>
            <Transform DEF='Tail_Hub'>
              <Transform scale='0.25 0.25 0.25'>
                <Transform USE='RotorBlade'/>
              </Transform>
            </Transform>
          </Transform>
          <Transform DEF='Fuselage_Pylons'>
            <Transform translation='0 -13. -5.6'>
              <Shape>
                <Sphere radius='2'/>
                <Appearance>
                  <Material diffuseColor='0.8 0.8 0.5' emissiveColor='0 0 1' shininess='0.25' transparency='0.05'/>
                </Appearance>
              </Shape>
            </Transform>
            <Transform rotation='1 0 0 1.5702' scale='1.8 1.2 7' translation='0 4.8 -7.2'>
              <Shape>
                <Sphere radius='3'/>
                <Appearance>
                  <Material diffuseColor='0.2 0.4 0.8'/>
                </Appearance>
              </Shape>
            </Transform>
            <Transform DEF='Main_Tail_Pylon' translation='0 .5 0'>
              <Transform scale='0.7 1 0.3' translation='0 9 -4.5'>
                <Shape DEF='Pylon'>
                  <Cylinder height='45' radius='4'/>
                  <Appearance>
                    <Material/>
                  </Appearance>
                </Shape>
              </Transform>
              <Transform rotation='0 1 0 0.39' translation='1.7 0 0'>
                <Transform rotation='1 0 0 .95' scale='0.3 0.2 .4' translation='0 33 -1'>
                  <Shape USE='Pylon'/>
                </Transform>
              </Transform>
            </Transform>
          </Transform>
          <Transform>
            <Transform DEF='Engines'>
              <Transform translation='5 0 -3'>
                <Shape DEF='Engine'>
                  <Cylinder height='10' radius='0.8'/>
                  <Appearance>
                    <Material/>
                  </Appearance>
                </Shape>
              </Transform>
              <Transform DEF='Engine2' translation='3.5 3 -2'>
                <Shape USE='Engine'/>
              </Transform>
              <Transform DEF='Engine3' translation='-5 0 -3'>
                <Shape USE='Engine'/>
              </Transform>
            </Transform>
          </Transform>
        </Group>
      </Transform>
      <!-- Able to get the right orientation by making my original group a child to a senior group. Need to change the orientation of viewpoint because they are now part of the parent group Tried playing with "inlines" but was geting parsing errors Rotation for tail-when rotation applied, the tail was somehow oriented in the same plane as the main rotor. -->
    </Group>
    <Background groundAngle='1.309 1.5702' groundColor='0.1 0.1 0.0 0.4 .25 .2 .6 .60 .6' skyAngle='1.309 1.571' skyColor='0.0 0.2 0.7 0.0 0.5 1.0 1.0 1.0 1.0'/>
    <Viewpoint DEF='Front' description='Front' orientation='1 0 0 .1' position='0 0 60'/>
    <Viewpoint DEF='Bottom' description='Bottom' fieldOfView='0.985398' orientation='1 0 0 1.57' position='0 -70 7'/>
    <Viewpoint DEF='Left_Side' description='Left_Side' orientation='0 1 0 1.57' position='60 0 0'/>
    <TimeSensor DEF='Clock' loop='true'/>
    <OrientationInterpolator DEF='SpinRotor' key='0.0 0.5 1.0' keyValue='0 0 1 0.0 0 0 1 3.14 0 0 1 6.28'/>
    <OrientationInterpolator DEF='SpinTail' key='0.0 0.5 1.0' keyValue='0 0 1 0.0 0 0 1 3.14 0 0 1 6.28'/>
    <ROUTE fromField='fraction_changed' fromNode='Clock' toField='set_fraction' toNode='SpinRotor'/>
    <ROUTE fromField='fraction_changed' fromNode='Clock' toField='set_fraction' toNode='SpinTail'/>
    <ROUTE fromField='value_changed' fromNode='SpinRotor' toField='set_rotation' toNode='Rotor_System'/>
    <ROUTE fromField='value_changed' fromNode='SpinTail' toField='set_rotation' toNode='TailRotor'/>
  </Scene>
</X3D>