<?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='FrontWheel.x3d' name='title'/>
    <meta content='F16 front wheel' name='description'/>
    <meta content='Etsuko Lippi' name='creator'/>
    <meta content='Murat ONDER, LTJG, Turkish Navy' name='translator'/>
    <meta content='19 July 2001' name='created'/>
    <meta content='28 November 2019' name='modified'/>
    <meta content='https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F16FightingFalconTurkey/FrontWheel.x3d' name='identifier'/>
    <meta content='../../license.html' name='license'/>
  </head>
  <Scene>
    <!-- Example scene to illustrate X3D tags and attributes. -->
    <WorldInfo title='FrontWheel.x3d'/>
    <Transform DEF='WheelsFrontAxleTransform' rotation='0 1 0 -1.57'>
      <Group>
        <!-- Upper white axles -->
        <Transform translation='0 -0.25 0'>
          <Transform scale='0.7 0.7 0.7' translation='0 2.0 0.75'>
            <!-- main axle for front wheels -->
            <Shape>
              <Appearance DEF='mainAxle'>
                <Material diffuseColor='1.0 1.0 1.0'/>
              </Appearance>
              <Cylinder height='2.5' radius='0.25'/>
            </Shape>
          </Transform>
          <Transform rotation='0 0 -1 1.05' scale='0.7 0.7 0.7' translation='0.68 1.8 0.75'>
            <!-- assistant axle for front wheels -->
            <Shape>
              <Appearance USE='mainAxle'/>
              <Cylinder height='2.1' radius='0.2'/>
            </Shape>
          </Transform>
          <Transform rotation='0 0 -1 1.05' scale='0.7 0.7 0.7' translation='1.8 2.42 0.75'>
            <!-- assistant axle for front wheels -->
            <Shape>
              <Appearance USE='mainAxle'/>
              <Cylinder height='1.6' radius='0.3'/>
            </Shape>
          </Transform>
        </Transform>
      </Group>
      <Group>
        <!-- Gray joints and wheel group -->
        <Transform translation='0 0 -0.73'>
          <Transform translation='0 0.55 0.95'>
            <!-- vertical axle -->
            <Shape>
              <Appearance DEF='axis'>
                <Material ambientIntensity='0.3' diffuseColor='0.3 0.3 0.3' shininess='0.20' specularColor='0.50 0.50 0.60'/>
              </Appearance>
              <Cylinder height='1' radius='0.08'/>
            </Shape>
          </Transform>
          <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0 0 1'>
            <!-- lower horizontal axle -->
            <Shape>
              <Appearance USE='axis'/>
              <Cylinder height='0.5' radius='0.1'/>
            </Shape>
          </Transform>
          <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0 0 0.95'>
            <!-- lower Joint -->
            <Shape>
              <Appearance USE='axis'/>
              <Cylinder height='0.4' radius='0.15'/>
            </Shape>
          </Transform>
          <Group>
            <!-- wheel -->
            <Transform DEF='WheelTransform'>
              <TouchSensor DEF='WheelTouchSensor' description='When the mouse comes over the wheel the wheel starts to turn.'/>
              <TimeSensor DEF='Clock' cycleInterval='0.5' enabled='false' loop='true'/>
              <OrientationInterpolator DEF='WheelInterpolator' key='0 0.5 1.0' keyValue='0 0 1 0.0 0 0 1 3.14 0 0 1 6.28'/>
              <ROUTE fromField='isOver' fromNode='WheelTouchSensor' toField='set_enabled' toNode='Clock'/>
              <ROUTE fromField='fraction_changed' fromNode='Clock' toField='set_fraction' toNode='WheelInterpolator'/>
              <ROUTE fromField='value_changed' fromNode='WheelInterpolator' toField='set_rotation' toNode='WheelTransform'/>
              <Transform scale='0.3 0.3 0.3' translation='0 0 1.5'>
                <Transform rotation='0 1 0 1.571'>
                  <Shape DEF='front_wheel'>
                    <Appearance>
                      <Material DEF='black' diffuseColor='0 0 0' shininess='0.125' specularColor='0.2 0.2 0.2'/>
                    </Appearance>
                    <Extrusion creaseAngle='3.14' crossSection='0.00 1.30 .494 1.196 .923 .923 1.196 .494 1.30 0.00 1.196 -.494 .923 -.923 .494 -1.196 0.00 -1.30' spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
                  </Shape>
                  <Shape DEF='inside_wheel'>
                    <Appearance DEF='white'>
                      <Material diffuseColor='1 1 1'/>
                    </Appearance>
                    <Extrusion crossSection='0.00 1.30 0.10 1.30 0.10 0.00 0.10 -1.30 0.00 -1.30 0.00 0.00 0.00 1.30' spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
                  </Shape>
                </Transform>
                <Transform rotation='0 1 0 1.571'>
                  <Shape>
                    <Appearance USE='white'/>
                    <Extrusion crossSection='-0.10 1.30 0.00 1.30 0.00 0.00 0.00 -1.30 -0.10 -1.30 -0.10 0.00 -0.10 1.30' spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
                  </Shape>
                </Transform>
                <Transform rotation='0 1 0 1.571'>
                  <Shape>
                    <Appearance>
                      <Material diffuseColor='0 0.25 0.5'/>
                    </Appearance>
                    <Extrusion crossSection='-0.30 1.30 -0.10 1.30 -0.10 0.00 -0.10 -1.30 -0.30 -1.30 -0.30 0.00 -0.30 1.30' spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
                  </Shape>
                </Transform>
              </Transform>
              <Transform translation='0 0 1.80'>
                <Inline DEF='Hub' url='"Hub.x3d" "https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F16FightingFalconTurkey/Hub.x3d" "Hub.wrl" "https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F16FightingFalconTurkey/Hub.wrl"'/>
              </Transform>
              <Transform translation='0 0 1.20'>
                <Inline USE='Hub'/>
              </Transform>
            </Transform>
          </Group>
          <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0 1 0.95'>
            <!-- Upper Joint -->
            <Shape>
              <Appearance USE='axis'/>
              <Cylinder height='0.4' radius='0.15'/>
            </Shape>
          </Transform>
          <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0 1 1.2'>
            <!-- upper horizontal axle -->
            <Shape>
              <Appearance USE='axis'/>
              <Cylinder height='0.9' radius='0.1'/>
            </Shape>
          </Transform>
        </Transform>
      </Group>
    </Transform>
  </Scene>
</X3D>