<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<meta name='titlecontent='SuperCobraPrototype.x3d'/>
<meta name='descriptioncontent='Defines a prototype of Supercobra AH-1Z helicopter.'/>
<meta name='creatorcontent='Jane Wu'/>
<meta name='createdcontent='16 January 2001'/>
<meta name='modifiedcontent='1 February 2015'/>
<meta name='TODOcontent='fix model rotations'/>
<meta name='referencecontent=' https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobra-UnitedStates/Hughes500HoverInteriorMedium-cd21-no59-10sec.wav '/>
<meta name='referencecontent=' https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobra-UnitedStates/FourBladeMainRotorPrototype.x3d '/>
<meta name='referencecontent=' https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobra-UnitedStates/RocketPod.x3d '/>
<meta name='referencecontent=' https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobra-UnitedStates/SkidLeft.x3d '/>
<meta name='referencecontent=' https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobra-UnitedStates/SkidRight.x3d '/>
<meta name='referencecontent=' https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobra-UnitedStates/TwoBladeTailRotorPrototype.x3d '/>
<meta name='referencecontent=' http://www.fas.org/man/dod-101/sys/ac/ah-1.htm '/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobra-UnitedStates/SuperCobraPrototype.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<ExternProtoDeclare name='FourBladeMainRotor'
  url=' "FourBladeMainRotorPrototype.x3d#FourBladeMainRotor" "https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobra-UnitedStates/FourBladeMainRotorPrototype.x3d#FourBladeMainRotor" "FourBladeMainRotorPrototype.wrl#FourBladeMainRotor" "https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobra-UnitedStates/FourBladeMainRotorPrototype.wrl#FourBladeMainRotor" '>
<field name='rotationOntype='SFBoolaccessType='inputOnly'
 appinfo='enable or disable rotor rotation'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='TwoBladeTailRotor'
  url=' "TwoBladeTailRotorPrototype.x3d#TwoBladeTailRotor" "https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobra-UnitedStates/TwoBladeTailRotorPrototype.x3d#TwoBladeTailRotor" "TwoBladeTailRotorPrototype.wrl#TwoBladeTailRotor" "https://savage.nps.edu/Savage/AircraftHelicopters/AH1SuperCobra-UnitedStates/TwoBladeTailRotorPrototype.wrl#TwoBladeTailRotor" '>
<field name='rotationOntype='SFBoolaccessType='inputOnly'/>
</ExternProtoDeclare>
<ProtoDeclare name='SuperCobraappinfo='Prototype declaration for SuperCobra helicopter'>
<ProtoInterface>
<field name='tailBoomColortype='SFNodeaccessType='initializeOnly'
 appinfo='color of tail boom'>
<!-- initialization node (if any) goes here -->
</field>
<field name='tailRotorDriveShaftColortype='SFNodeaccessType='initializeOnly'
 appinfo='color of tail boom drive shaft'>
<!-- initialization node (if any) goes here -->
</field>
<field name='horizontalStabilizerColortype='SFNodeaccessType='initializeOnly'
 appinfo='color of horizontal stabilizer'>
<!-- initialization node (if any) goes here -->
</field>
<field name='fuselageColortype='SFNodeaccessType='initializeOnly'
 appinfo='color of fuselage'>
<!-- initialization node (if any) goes here -->
</field>
<field name='cockpitColortype='SFNodeaccessType='initializeOnly'
 appinfo='color of cockpit'>
<!-- initialization node (if any) goes here -->
</field>
<field name='cowlingColortype='SFNodeaccessType='initializeOnly'
 appinfo='color of cowling'>
<!-- initialization node (if any) goes here -->
</field>
<field name='helicopterNametype='SFStringvalue='Super CobraaccessType='initializeOnly'
 appinfo='name of specific helicopter'/>

<field name='inFlighttype='SFBoolaccessType='inputOnly'
 appinfo='input event indicating that the aircraft is in flight'/>
</ProtoInterface>
<ProtoBody>
<Group>
<WorldInfo DEF='HeloWorldInfo'>
<IS>
<connect nodeField='titleprotoField='helicopterName'/>
</IS>
</WorldInfo>
<Viewpoint DEF='HeloNameViewpointdescription='helicopter name overridden by protodeclare fieldorientation='0 1 0 -1.57position='-20 2 0'>
<IS>
<connect nodeField='descriptionprotoField='helicopterName'/>
</IS>
</Viewpoint>
<LOD range='400'>
<Group DEF='DetailViewpoint'>
<Viewpoint description='SuperCobra Rightposition='0 2 15'/>
<Viewpoint description='SuperCobra Frontorientation='0 1 0 1.57position='15 2 0'/>
<Viewpoint description='SuperCobra Leftorientation='0 1 0 3.14position='0 2 -15'/>
<Viewpoint description='SuperCobra Behindorientation='0 1 0 4.71position='-15 2 0'/>
<Viewpoint description='SuperCobra Toporientation='-0.51 0.83 0.22 1.24position='10 10 6'/>
<Viewpoint description='SuperCobra Bottomorientation='0.82 0.22 -0.53 0.94position='0 -12 10'/>
</Group>
<WorldInfo info='"null node"'/>
</LOD>
<!-- ROUTE information for InFlightStatusScript node:  [from status to HeloFlyingAudioClip.set_loop ] [from status to MainRotor.rotationOn ] [from status to TailRotor.rotationOn ] [from status to BottomACLightClock.set_enabled ] [from status to TopACLightClock.set_enabled ] -->
<Script DEF='InFlightStatusScript'>
<field name='inFlighttype='SFBoolaccessType='inputOnly'/>
<field name='statustype='SFBoolaccessType='outputOnly'/>
<IS>
<connect nodeField='inFlightprotoField='inFlight'/>
</IS>
<![CDATA[
            
ecmascript:

function inFlight(value, ts) {

   status = value;

}

          
]]>
</Script>
<Sound direction='1.0 1.0 1.0maxBack='200.0maxFront='200.0minBack='20.0minFront='20.0'> </Sound>
<!-- Tailboom -->
<Transform DEF='TailBoomrotation='0 0 -1 1.66scale='1.2 1.2 1.0translation='-7.8 0.78 0.0'>
<!-- Tailboom shape -->
<Transform rotation='0 1 0 1.57'>
<Shape DEF='TailBoomShape'>
<IS>
<connect nodeField='appearanceprotoField='tailBoomColor'/>
</IS>
<Extrusion convex='falsecreaseAngle='0.8crossSection='0.4 -0.5 -0.4 -0.5 -0.465 -0.465 -0.5 -0.4 -0.5 0.4 -0.465 0.465 -0.4 0.5 0.4 0.5 0.465 0.465 0.5 0.4 0.5 -0.4 0.465 -0.465 0.4 -0.5endCap='falseorientation='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0scale='0.10 0.10 0.15 0.15 0.20 0.20 0.25 0.25 0.30 0.30 0.35 0.35 0.40 0.40 0.45 0.45 0.475 0.475 0.50 0.50 0.525 0.525 0.55 0.55 0.565 0.565 0.575 0.575 0.58 0.58 0.6 0.6solid='falsespine='0.00 0.00 0.00 0.00 0.05 0.00 0.00 0.10 0.00 0.00 0.20 0.00 0.00 0.30 0.00 0.00 0.40 0.00 0.00 0.80 0.00 0.00 1.00 0.00 0.00 2.00 0.00 0.00 3.00 0.00 0.00 3.25 0.00 0.00 3.50 0.00 0.00 3.75 0.00 0.00 4.00 0.00 0.00 4.25 0.00 0.00 4.50 0.00'/>
</Shape>
</Transform>
<!-- AC Light -->
<Shape>
<Appearance>
<Material emissiveColor='1.0 1.0 1.0'/>
</Appearance>
<Sphere radius='.04'/>
</Shape>
<!-- Tail Rotor Drive Shaft -->
<Transform center='0.0 2.2 0.0rotation='0.0 0.0 1.0 0.03translation='-0.3 1.0 0.0'>
<Group>
<Shape DEF='TailRotorDriveShaftShape'>
<IS>
<connect nodeField='appearanceprotoField='tailRotorDriveShaftColor'/>
</IS>
<Extrusion ccw='falsecreaseAngle='1.5crossSection='-0.03 0 -0.0276 -0.0114 -0.0213 -0.0213 -0.0114 -0.0276 0 -0.03 0.0114 -0.0276 0.0213 -0.0213 0.0276 -0.0114 0.03 0 0.0276 0.0114 0.0213 0.0213 0.0114 0.0276 0 0.03 -0.0114 0.0276 -0.0213 0.0213 -0.0276 0.0114 -0.03 0scale='2 2 2.3 2.3 2 2spine='-1.16 -1.0 0.0 0.0 0.0 0.0 0.0 3.6 0.0'/>
</Shape>
</Group>
</Transform>
<!-- Horizontal stabilizer -->
<Transform rotation='0.58 0.58 0.58 2.09translation='0 0.1 0'>
<Transform rotation='0 0 1 3.14'>
<Shape DEF='HorizontalStabilizerShape'>
<IS>
<connect nodeField='appearanceprotoField='horizontalStabilizerColor'/>
</IS>
<Extrusion convex='falsecreaseAngle='0.8crossSection='-2.7 0.0 -2.6 0.02 -2.5 0.04 -2.4 0.045 -2.32 0.04 -0.5 0.0 -2.32 -0.04 -2.4 -0.045 -2.5 -0.04 -2.6 -0.02 -2.7 0.0scale='0.14 1.0 0.29 1.0 0.14 1.0solid='falsespine='0.0 -0.85 0.0 0.0 0.0 0.0 0.0 0.85 0.0'/>
</Shape>
</Transform>
<Transform DEF='LeftVerticalStabilizerrotation='1 0 0 -1.57translation='-0.05 -0.85 0.325'>
<Shape DEF='VerticalStabilizerShape'>
<IS>
<connect nodeField='appearanceprotoField='tailBoomColor'/>
</IS>
<!-- right, left, bottom, lower front, upper front, top, lower back, upper back -->
<IndexedFaceSet convex='falsecoordIndex='0 1 2 3 4 5 -1 6 11 10 9 8 7 -1 0 6 7 1 -1 1 7 8 2 -1 2 8 9 3 -1 3 9 10 4 -1 0 5 11 6 -1 5 4 10 11 -1'>
<Coordinate point='0.1 0.15 0.0 0.3 0.15 0.0 0.425 0.325 0.0 0.275 0.6 0.0 0.05 0.6 0.0 0.125 0.3 0.0 0.1 0.15 -0.04 0.3 0.15 -0.02 0.425 0.325 -0.02 0.275 0.6 -0.02 0.05 0.6 -0.04 0.125 0.3 -0.04'/>
</IndexedFaceSet>
</Shape>
</Transform>
<Transform DEF='RightVerticalStabilizerrotation='1 0 0 -1.57translation='-0.05 0.85 0.325'>
<Shape USE='VerticalStabilizerShape'/>
</Transform>
</Transform>
<!-- Vertical Fin -->
<Transform DEF='VerticalFinrotation='0 0 1 1.57scale='3.5 3.5 2.5translation='1.45 0 0'>
<Shape DEF='VerticalFinShape'>
<IS>
<connect nodeField='appearanceprotoField='tailBoomColor'/>
</IS>
<IndexedFaceSet convex='falsecoordIndex='0 1 2 3 4 5 6 7 -1 8 15 14 13 12 11 10 9 -1 8 9 1 0 -1 9 10 2 1 -1 10 11 3 2 -1 11 12 4 3 -1 12 13 5 4 -1 5 13 14 6 -1 6 14 15 7 -1 0 7 15 8 -1'>
<Coordinate point='0.1 0.375 0.01 0.125 0.355 0.01 0.175 0.33 0.01 0.3 0.325 0.02 0.35 0.35 0.02 0.375 0.4 0.02 0.0 0.8 0.02 -0.1 0.7 0.01 0.1 0.375 -0.01 0.125 0.355 -0.01 0.175 0.33 -0.01 0.3 0.325 -0.02 0.35 0.35 -0.02 0.375 0.4 -0.02 0.0 0.8 -0.02 -0.1 0.7 -0.01'/>
</IndexedFaceSet>
</Shape>
<!-- Tail Stinger -->
<Transform rotation='0 0 -1 1.05translation='0.07 0.29 0.0'>
<Shape>
<Appearance DEF='Gray'>
<Material diffuseColor='.25 .25 .25'/>
</Appearance>
<Cylinder height='0.2radius='0.008'/>
</Shape>
<!-- Tip part -->
<Transform rotation='0 0 1 2.62translation='-0.0075 -0.11 0'>
<Shape>
<Appearance USE='Gray'/>
<Cylinder height='0.04radius='0.008'/>
</Shape>
</Transform>
</Transform>
</Transform>
<!-- Tail Rotor -->
<Transform translation='-1.25 0.0 0.25'>
<!-- ROUTE information for TailRotor node:  [from InFlightStatusScript.status to rotationOn ] -->
<ProtoInstance name='TwoBladeTailRotorDEF='TailRotor'/>
</Transform>
</Transform>
<!-- Fuselage -->
<Transform DEF='FuselageBodyrotation='0 1 0 -1.57translation='0.4 1.78 0.0'>
<Transform DEF='MainFuselageBody'>
<Shape DEF='MainFuselageShape'>
<IS>
<connect nodeField='appearanceprotoField='fuselageColor'/>
</IS>
<IndexedFaceSet creaseAngle='1.57coordIndex='7 6 5 4 3 2 1 0 -1 0 1 2 3 13 12 11 10 9 8 -1 10 11 12 13 23 22 21 20 -1 14 15 16 17 18 19 4 5 6 7 -1 24 25 26 27 19 18 17 16 -1 0 8 14 7 -1 20 21 22 23 31 30 29 28 -1 27 26 25 24 32 33 34 35 -1 28 29 30 31 39 38 37 36 -1 35 34 33 32 40 41 42 43 -1 9 10 20 24 16 15 -1 20 28 32 24 -1 28 36 40 32 -1 43 42 41 40 36 37 38 39 -1'>
<Coordinate point='-0.025 0.0 3.25 -0.3 0.0 2.0 -0.55 0.0 0.5 -0.6 0.0 -0.5 0.6 0.0 -0.5 0.55 0.0 0.5 0.3 0.0 2.0 0.025 0.0 3.25 -0.05 -1.0 3.5 -0.05 -1.0 3.0 -0.3 -1.0 3.0 -0.5 -1.0 2.0 -0.55 -1.0 0.0 -0.56 -1.0 -0.5 0.05 -1.0 3.5 0.05 -1.0 3.0 0.3 -1.0 3.0 0.5 -1.0 2.0 0.55 -1.0 0.0 0.56 -1.0 -0.5 -0.3 -1.7 3.0 -0.5 -1.9 2.0 -0.55 -1.9 0.0 -0.56 -1.9 -0.5 0.3 -1.7 3.0 0.5 -1.9 2.0 0.55 -1.9 0.0 0.56 -1.9 -0.5 -0.275 -1.76 3.0 -0.475 -1.96 2.0 -0.525 -1.96 0.0 -0.535 -1.96 -0.5 0.275 -1.76 3.0 0.475 -1.96 2.0 0.525 -1.96 0.0 0.535 -1.96 -0.5 -0.2 -1.8 3.0 -0.4 -2.0 2.0 -0.45 -2.0 0.0 -0.46 -2.0 -0.5 0.2 -1.8 3.0 0.4 -2.0 2.0 0.45 -2.0 0.0 0.46 -2.0 -0.5'/>
</IndexedFaceSet>
</Shape>
</Transform>
<!-- Left Engine -->
<Transform rotation='0 1 0 0.15scale='0.6 0.9 1.0translation='-0.65 -0.5 1.6'>
<Transform DEF='Enginerotation='1 0 0 1.57scale='0.25 0.25 0.25'>
<Shape DEF='EngineShape'>
<IS>
<connect nodeField='appearanceprotoField='fuselageColor'/>
</IS>
<Extrusion creaseAngle='2.36crossSection='-0.05 -5 -0.15 -4.95 -0.25 -4.8 -0.35 -4.45 -0.45 -4 -0.45 4 -0.35 4.45 -0.25 4.8 -0.15 4.95 -0.05 5 0.05 5 0.15 4.95 0.25 4.8 0.35 4.45 0.45 4 0.45 -4 0.35 -4.45 0.25 -4.8 0.15 -4.95 0.05 -5 -0.05 -5spine='0.00 0.0 -2.00 0.77 0.0 -1.95 1.20 0.0 -1.80 1.41 0.0 -1.56 1.58 0.0 -1.15 1.58 0.0 0.00 1.58 0.0 1.15 1.41 0.0 1.56 1.20 0.0 1.80 0.77 0.0 1.95 0.00 0.0 2.00 -0.77 0.0 1.95 -1.20 0.0 1.80 -1.41 0.0 1.56 -1.58 0.0 1.15 -1.58 0.0 0.00 -1.58 0.0 -1.15 -1.41 0.0 -1.56 -1.20 0.0 -1.80 -0.77 0.0 -1.95 0.00 0.0 -2.00'/>
</Shape>
<Transform>
<Shape>
<Appearance DEF='EngineInsideColor'>
<Material diffuseColor='0.25 0.25 0.25'/>
</Appearance>
<Extrusion ccw='falsecrossSection='0.00 -2.00 0.77 -1.95 1.20 -1.80 1.41 -1.56 1.58 -1.15 1.58 0.00 1.58 1.15 1.41 1.56 1.20 1.80 0.77 1.95 0.00 2.00 -0.77 1.95 -1.20 1.80 -1.41 1.56 -1.58 1.15 -1.58 0.0 -1.58 -1.15 -1.41 -1.56 -1.20 -1.80 -0.77 -1.95 0.0 -2.0spine='0.0 6.5 0.0 0.0 -3.0 0.0'/>
</Shape>
</Transform>
<Transform translation='0 6.6 0'>
<Shape>
<Appearance USE='EngineInsideColor'/>
<Extrusion crossSection='0.1 0.0 0.092 -0.038 0.071 -0.071 0.038 -0.092 0.0 -0.1 -0.038 -0.092 -0.071 -0.071 -0.092 -0.038 -0.1 0.0 -0.092 0.038 -0.071 0.071 -0.038 0.092 0.0 0.1 0.038 0.092 0.071 0.071 0.092 0.038 0.1 0.0spine='0.0 0.0 -2.00 0.77 0.0 -1.95 1.20 0.0 -1.80 1.41 0.0 -1.56 1.58 0.0 -1.15 1.58 0.0 0.00 1.58 0.0 1.15 1.41 0.0 1.56 1.20 0.0 1.80 0.77 0.0 1.95 0.00 0.0 2.00 -0.77 0.0 1.95 -1.20 0.0 1.80 -1.41 0.0 1.56 -1.58 0.0 1.15 -1.58 0.0 0.0 -1.58 0.0 -1.15 -1.41 0.0 -1.56 -1.20 0.0 -1.80 -0.77 0.0 -1.95 0.0 0.0 -2.0'/>
</Shape>
</Transform>
<!-- Left Middle Strip -->
<Transform rotation='0.58 0.58 0.58 2.09translation='-1.55 1.75 0'>
<Shape DEF='EngineStripShape'>
<Appearance>
<Material diffuseColor='0.05 0.05 0.05'/>
</Appearance>
<Box size='9.5 0.3 0.1'/>
</Shape>
</Transform>
<!-- Right Middle Strip -->
<Transform rotation='0.58 0.58 0.58 2.09translation='1.55 1.75 0'>
<Shape USE='EngineStripShape'/>
</Transform>
<!-- Left Upper Strip -->
<Transform rotation='0.58 0.58 0.58 2.09translation='-1.55 1.75 -0.75'>
<Shape USE='EngineStripShape'/>
</Transform>
<!-- Right Upper Strip -->
<Transform rotation='0.58 0.58 0.58 2.09translation='1.55 1.75 -0.75'>
<Shape USE='EngineStripShape'/>
</Transform>
<!-- Left Lower Strip -->
<Transform rotation='0.58 0.58 0.58 2.09translation='-1.55 1.75 0.75'>
<Shape USE='EngineStripShape'/>
</Transform>
<!-- Right Lower Strip -->
<Transform rotation='0.58 0.58 0.58 2.09translation='1.55 1.75 0.75'>
<Shape USE='EngineStripShape'/>
</Transform>
</Transform>
</Transform>
<!-- Right Engine -->
<Transform rotation='0 -1 0 0.15scale='0.6 0.9 1.0translation='0.65 -0.5 1.6'>
<Transform USE='Engine'/>
</Transform>
<!-- Cockpit -->
<Transform DEF='Cockpitrotation='1 0 0 -1.57translation='0.0 -0.4 1.51'>
<!-- Cockpit Bottom -->
<Transform DEF='CockpitBottomrotation='0 1 0 3.14translation='0 2 -1.6'>
<Shape DEF='CockpitBottomShape'>
<IS>
<connect nodeField='appearanceprotoField='cockpitColor'/>
</IS>
<Extrusion beginCap='falseconvex='falsecreaseAngle='1.5crossSection='-0.56 -0.65 -0.56 -0.3 -0.56 -0.05 -0.535 -0.02 -0.46 0.0 0.46 0.0 0.535 -0.02 0.56 -0.05 0.56 -0.3 0.56 -0.65endCap='falsescale='1.0 2.5 1.0 2.0 1.0 1.61 0.9 1.25solid='falsespine='0.0 0.0 0.0 0.0 0.375 0.0 0.0 1.25 0.0 0.0 2.15 0.0'/>
</Shape>
<!-- Front Cockpit Bottom -->
<Transform translation='0 0 -0.325'>
<Shape DEF='FrontCockpitBottomShape'>
<IS>
<connect nodeField='appearanceprotoField='cockpitColor'/>
</IS>
<Extrusion beginCap='falseconvex='falsecreaseAngle='1.5crossSection='-0.56 -0.65 -0.56 -0.3 -0.56 -0.05 -0.535 -0.02 -0.46 0.0 0.46 0.0 0.535 -0.02 0.56 -0.05 0.56 -0.3 0.56 -0.65endCap='falsescale='0.9 0.75 0.85 0.56solid='falsespine='0.0 2.15 0.0 0.0 2.56 0.0'/>
</Shape>
</Transform>
</Transform>
<!-- Cockpit Top -->
<Transform rotation='0 .71 .71 3.14translation='0.0 2.0 0.4'>
<Shape DEF='CockpitTopShape'>
<IS>
<connect nodeField='appearanceprotoField='cockpitColor'/>
</IS>
<IndexedFaceSet creaseAngle='1.57coordIndex='0 1 17 -1 1 2 16 17 -1 2 3 15 16 -1 3 4 10 11 14 15 -1 4 5 9 10 -1 5 6 8 9 -1 6 7 8 -1 11 12 13 14 -1 14 13 12 11 -1 1 0 17 -1 2 1 17 16 -1 3 2 16 15 -1 4 3 15 14 11 10 -1 5 4 10 9 -1 6 5 9 8 -1 7 6 8 -1'>
<Coordinate point='0.56 -0.3 0.0 0.56 -0.1 0.0 0.56 -0.04 0.0 0.475 0.0 0.0 -0.475 0.0 0.0 -0.56 -0.04 0.0 -0.56 -0.1 0.0 -0.56 -0.3 0.0 -0.56 -0.1 0.06 -0.56 -0.04 0.08 -0.475 0.0 0.10 -0.300 0.0 0.12 -0.300 -0.03 0.5 0.300 -0.03 0.5 0.300 0.0 0.12 0.475 0.0 0.10 0.56 -0.04 0.08 0.56 -0.1 0.06'/>
</IndexedFaceSet>
</Shape>
<!-- Center Bars -->
<Shape DEF='CenterBarShape'>
<IS>
<connect nodeField='appearanceprotoField='cockpitColor'/>
</IS>
<IndexedFaceSet coordIndex='3 2 1 0 -1 0 1 2 3 -1 4 5 6 7 -1 7 6 5 4 -1 17 16 9 8 -1 8 9 16 17 -1 16 15 10 9 -1 9 10 15 16 -1 15 14 11 10 -1 10 11 14 15 -1 14 13 12 11 -1 11 12 13 14 -1 23 18 17 8 -1 8 17 18 23 -1 22 19 18 23 -1 23 18 19 22 -1 22 21 20 19 -1 19 20 21 22 -1 31 30 29 28 27 26 25 24 -1 24 25 26 27 28 29 30 31 -1 39 38 37 36 35 34 33 32 -1 32 33 34 35 36 37 38 39 -1'>
<Coordinate DEF='CenterBarCoordpoint='0.3 -0.03 0.5 0.3 -0.13 1.75 0.25 -0.13 1.75 0.25 -0.03 0.5 -0.3 -0.03 0.5 -0.3 -0.13 1.75 -0.25 -0.13 1.75 -0.25 -0.03 0.5 -0.3 -0.13 1.75 0.3 -0.13 1.75 0.4 -0.2 1.725 0.45 -0.3 1.7 0.56 -0.94 1.2 0.56 -0.95 1.25 0.45 -0.3 1.75 0.4 -0.2 1.775 0.3 -0.13 1.8 -0.3 -0.13 1.8 -0.4 -0.2 1.775 -0.45 -0.3 1.75 -0.56 -0.95 1.25 -0.56 -0.94 1.2 -0.45 -0.3 1.7 -0.4 -0.2 1.725 0.3 -0.13 1.75 0.3 -0.17 2.0 0.3 -0.25 2.1 0.3 -1.0 3.0 0.25 -1.0 3.0 0.25 -0.25 2.1 0.25 -0.17 2.0 0.25 -0.13 1.75 -0.3 -0.13 1.75 -0.3 -0.17 2.0 -0.3 -0.25 2.1 -0.3 -1.0 3.0 -0.25 -1.0 3.0 -0.25 -0.25 2.1 -0.25 -0.17 2.0 -0.25 -0.13 1.75'/>
</IndexedFaceSet>
</Shape>
<!-- Glass Panes -->
<Shape>
<Appearance>
<Material diffuseColor='0.75 0.75 0.75transparency='0.5'/>
</Appearance>
<IndexedFaceSet creaseAngle='0.8coordIndex='11 10 9 5 4 3 2 1 0 -1 0 1 2 3 4 5 9 10 11 -1 9 8 7 6 5 -1 5 6 7 8 9 -1 13 14 15 16 17 21 22 23 -1 23 22 21 17 16 15 14 13 -1 17 18 19 20 21 -1 21 20 19 18 17 -1 24 25 26 27 -1 27 26 25 24 -1 28 29 30 31 32 33 34 35 -1 35 34 33 32 31 30 29 28 -1 44 43 42 41 40 39 38 37 36 -1 36 37 38 39 40 41 42 43 44 -1 45 46 47 48 49 50 51 52 53 -1 53 52 51 50 49 48 47 46 45 -1'>
<Coordinate DEF='GlassPaneCoordpoint='0.3 -0.03 0.5 0.3 0.0 0.12 0.475 0.0 0.10 0.56 -0.04 0.08 0.56 -0.1 0.06 0.56 -0.3 0.0 0.56 -0.38 0.0 0.56 -0.7 0.37 0.56 -0.94 1.2 0.45 -0.3 1.7 0.4 -0.2 1.725 0.3 -0.13 1.75 -0.3 -0.03 0.5 -0.3 0.0 0.12 -0.475 0.0 0.10 -0.56 -0.04 0.08 -0.56 -0.1 0.06 -0.56 -0.3 0.0 -0.56 -0.38 0.0 -0.56 -0.7 0.37 -0.56 -0.94 1.2 -0.45 -0.3 1.7 -0.4 -0.2 1.725 -0.3 -0.13 1.75 0.25 -0.03 0.5 0.25 -0.13 1.75 -0.25 -0.13 1.75 -0.25 -0.03 0.5 0.25 -0.13 1.8 0.25 -0.17 2.0 0.25 -0.25 2.1 0.25 -1.0 3.0 -0.25 -1.0 3.0 -0.25 -0.25 2.1 -0.25 -0.17 2.0 -0.25 -0.13 1.8 0.3 -0.13 1.8 0.4 -0.2 1.775 0.45 -0.3 1.75 0.56 -0.95 1.25 0.48 -1.31 2.55 0.3 -1.0 3.0 0.3 -0.25 2.1 0.3 -0.17 2.0 0.3 -0.13 1.8 -0.3 -0.13 1.8 -0.4 -0.2 1.775 -0.45 -0.3 1.75 -0.56 -0.95 1.25 -0.48 -1.31 2.55 -0.3 -1.0 3.0 -0.3 -0.25 2.1 -0.3 -0.17 2.0 -0.3 -0.13 1.8'/>
</IndexedFaceSet>
</Shape>
<!-- Nose -->
<Shape DEF='NoseShape1'>
<IS>
<connect nodeField='appearanceprotoField='fuselageColor'/>
</IS>
<IndexedFaceSet creaseAngle='0.86coordIndex='0 1 2 3 -1 0 3 4 -1 0 4 5 6 -1 9 8 7 1 -1 7 2 1 -1 3 2 10 11 -1 4 3 11 12 -1 5 4 12 13 -1 2 7 15 10 -1 7 8 14 15 -1 11 10 16 17 -1 11 17 18 19 -1 10 20 21 16 -1 21 18 17 16 -1 19 6 5 13 12 11 -1 20 10 15 14 8 9 -1 6 22 23 24 25 26 27 9 -1 27 26 25 24 23 22 6 -1 0 6 9 1 -1 6 5 28 22 -1 28 29 23 22 -1 29 30 24 23 -1 8 9 27 33 -1 32 33 27 26 -1 31 32 26 25 -1 30 31 25 24 -1 8 33 32 31 30 29 28 5 -1 41 40 39 38 37 36 35 34 -1'>
<Coordinate DEF='NoseCoordpoint='0.3 -1.0 3.0 -0.3 -1.0 3.0 -0.1 -1.15 3.38 0.1 -1.15 3.38 0.20 -1.2 3.34 0.25 -1.31 3.2 0.48 -1.31 2.56 -0.20 -1.2 3.34 -0.25 -1.31 3.2 -0.48 -1.31 2.56 -0.025 -1.31 3.6 0.025 -1.31 3.6 0.115 -1.31 3.55 0.18 -1.31 3.45 -0.18 -1.31 3.45 -0.115 -1.31 3.55 -0.025 -1.5 3.55 0.025 -1.5 3.55 0.025 -1.555 3.2 0.025 -1.31 3.2 -0.025 -1.31 3.2 -0.025 -1.555 3.2 0.48 -1.635 2.56 0.455 -1.66 2.56 0.39 -1.675 2.56 -0.39 -1.675 2.56 -0.455 -1.66 2.56 -0.48 -1.635 2.56 0.25 -1.515 3.2 0.225 -1.54 3.25 0.16 -1.555 3.275 -0.16 -1.555 3.275 -0.225 -1.54 3.25 -0.25 -1.515 3.2 0.51 -1.635 2.15 0.51 -1.925 2.15 0.485 -1.975 2.15 0.42 -2.0 2.15 -0.42 -2.0 2.15 -0.485 -1.975 2.15 -0.51 -1.925 2.15 -0.51 -1.635 2.15'/>
</IndexedFaceSet>
</Shape>
<Transform translation='0.0 -2.865 0.0'>
<Shape DEF='NoseShape2'>
<IS>
<connect nodeField='appearanceprotoField='fuselageColor'/>
</IS>
<Extrusion crossSection='0.11 -1.315 0.175 -1.34 0.2 -1.355 0.2 -1.515 0.175 -1.54 0.11 -1.555 -0.11 -1.555 -0.175 -1.54 -0.2 -1.515 -0.2 -1.355 -0.175 -1.34 -0.11 -1.315 0.11 -1.315scale='0.7 1.0 0.7 1.0spine='0.0 0.0 3.2 0.0 0.0 3.425'/>
</Shape>
</Transform>
</Transform>
<!-- Front Gun -->
<Transform translation='0 4.25 -1.35'>
<Shape DEF='FrontGunBaseShape'>
<IS>
<connect nodeField='appearanceprotoField='fuselageColor'/>
</IS>
<Sphere radius='0.28'/>
</Shape>
<Transform translation='0.0 0.6 -0.05'>
<Shape>
<Appearance>
<Material diffuseColor='0.25 0.25 0.25'/>
</Appearance>
<Cylinder height='1.75radius='0.05'/>
</Shape>
</Transform>
</Transform>
</Transform>
<!-- Cockpit Back Wall -->
<Transform translation='0 -0.575 -0.4'>
<Shape DEF='CockpitBackWallShape'>
<IS>
<connect nodeField='appearanceprotoField='cockpitColor'/>
</IS>
<Box size='1.05 1.1 0.1'/>
</Shape>
</Transform>
<!-- Cockpit Floor -->
<Transform translation='0 -1.5 -1.8'>
<Shape DEF='CockpitFloorShape'>
<IS>
<connect nodeField='appearanceprotoField='cockpitColor'/>
</IS>
<Box size='0.9 0.1 2.5'/>
</Shape>
</Transform>
<!-- Back Seat -->
<Transform translation='0 -1.2 -0.8'>
<Group DEF='Seat'>
<!-- Seat Bottom -->
<Shape>
<Appearance DEF='SeatColor'>
<Material diffuseColor='0.5 0.5 0.0'/>
</Appearance>
<Box size='1.0 0.4 0.8'/>
</Shape>
<!-- Seat Back -->
<Transform translation='0 0.45 0.35'>
<Shape>
<Appearance USE='SeatColor'/>
<Box size='0.75 0.5 0.1'/>
</Shape>
<!-- Side Wings & Head Rest -->
<Shape>
<Appearance>
<Material diffuseColor='0.6 0.6 0'/>
</Appearance>
<IndexedFaceSet coordIndex='0 1 2 3 4 -1 0 4 3 8 9 5 -1 9 8 7 6 5 -1 0 5 6 1 -1 8 3 2 7 -1 14 13 12 11 10 -1 15 19 18 13 14 10 -1 15 16 17 18 19 -1 15 10 11 16 -1 13 18 17 12 -1 23 22 0 10 -1 25 24 21 20 -1 22 25 20 0 -1 24 23 10 21 -1 22 23 24 25 -1'>
<Coordinate point='0.375 0.25 -0.05 0.375 -0.25 -0.15 0.375 -0.25 0.05 0.375 0.3 0.05 0.375 0.28 0.0 0.425 0.25 -0.05 0.5 -0.25 -0.15 0.5 -0.25 0.05 0.425 0.3 0.05 0.425 0.28 0.0 -0.375 0.25 -0.05 -0.375 -0.25 -0.15 -0.375 -0.25 0.05 -0.375 0.3 0.05 -0.375 0.28 0.0 -0.425 0.25 -0.05 -0.5 -0.25 -0.15 -0.5 -0.25 0.05 -0.425 0.3 0.05 -0.425 0.28 0.0 0.375 0.25 0.05 -0.375 0.25 0.05 0.3 0.5 -0.05 -0.3 0.5 -0.05 -0.3 0.5 0.05 0.3 0.5 0.05'/>
</IndexedFaceSet>
</Shape>
</Transform>
</Group>
</Transform>
<!-- Front Seat -->
<Transform translation='0 -1.4 -2.0'>
<Group USE='Seat'/>
</Transform>
</Transform>
<!-- Fuselage Bottom -->
<Group DEF='FuselageBottom'>
<Transform translation='-0.25 -0.25 0.0'>
<Shape>
<Appearance DEF='Black'>
<Material diffuseColor='0.0 0.0 0.0'/>
</Appearance>
<Box size='0.5 0.1 0.5'/>
</Shape>
</Transform>
<!-- Bottom A/C Light -->
<Transform translation='-1.0 -0.25 0.0'>
<Shape>
<Appearance>
<!-- ROUTE information for BottomLightColor node:  [from BottomLightColorPath.value_changed to set_emissiveColor ] -->
<Material DEF='BottomLightColordiffuseColor='0.4 0.4 0.4'/>
</Appearance>
<Sphere radius='0.04'/>
</Shape>
<Shape>
<Appearance>
<Material diffuseColor='0.1 0.1 0.1'/>
</Appearance>
<Cylinder height='0.05radius='0.06'/>
</Shape>
</Transform>
<!-- Animation Clock -->
<!-- ROUTE information for BottomACLightClock node:  [from InFlightStatusScript.status to set_enabled ] [from fraction_changed to BottomLightColorPath.set_fraction ] -->
<TimeSensor DEF='BottomACLightClockenabled='falseloop='true'/>
<!-- Animation Path -->
<!-- ROUTE information for BottomLightColorPath node:  [from BottomACLightClock.fraction_changed to set_fraction ] [from value_changed to BottomLightColor.set_emissiveColor ] -->
<ColorInterpolator DEF='BottomLightColorPathkey='0.0 0.5 0.5 1.0keyValue='1.0 0.0 0.0 1.0 0.0 0.0 1.0 1.0 1.0 1.0 1.0 1.0'/>
</Group>
<!-- Cowling -->
<Transform DEF='Cowlingscale='0.55 0.65 0.6translation='0.48 1.8 0.0'>
<Transform rotation='0 1 0 -1.57'>
<Shape DEF='CowlingShape'>
<IS>
<connect nodeField='appearanceprotoField='cowlingColor'/>
</IS>
<Extrusion creaseAngle='0.8crossSection='0.05 -0.75 -0.05 -0.75 -0.2 -0.65 -0.35 -0.5 -0.65 0.0 -0.65 1.5 -0.6 2.5 -0.4 3.25 0.0 4.0 0.4 3.25 0.6 2.5 0.65 1.5 0.65 0.0 0.35 -0.5 0.2 -0.65 0.05 -0.75scale='1.0 1.0 0.8 0.8 0.65 0.65spine='0.0 0.0 0.0 0.0 0.6 0.0 0.0 1.0 0.0'/>
</Shape>
</Transform>
<!-- Top A/C Light -->
<Transform translation='-1.5 1.04 0.0'>
<Shape>
<Appearance>
<!-- ROUTE information for TopLightColor node:  [from TopLightColorPath.value_changed to set_emissiveColor ] -->
<Material DEF='TopLightColordiffuseColor='0.4 0.4 0.4'/>
</Appearance>
<Sphere radius='0.04'/>
</Shape>
<Shape>
<Appearance>
<Material diffuseColor='0.1 0.1 0.1'/>
</Appearance>
<Cylinder height='0.05radius='0.06'/>
</Shape>
</Transform>
<!-- Animation Clock -->
<!-- ROUTE information for TopACLightClock node:  [from InFlightStatusScript.status to set_enabled ] [from fraction_changed to TopLightColorPath.set_fraction ] -->
<TimeSensor DEF='TopACLightClockenabled='falseloop='true'/>
<!-- Animation Path -->
<!-- ROUTE information for TopLightColorPath node:  [from TopACLightClock.fraction_changed to set_fraction ] [from value_changed to TopLightColor.set_emissiveColor ] -->
<ColorInterpolator DEF='TopLightColorPathkey='0.0 0.5 0.5 1.0keyValue='1.0 0.0 0.0 1.0 0.0 0.0 1.0 1.0 1.0 1.0 1.0 1.0'/>
</Transform>
<!-- Right Skid -->
<Transform rotation='0 0 1 -1.57translation='0.75 -1 1.15'> </Transform>
<!-- Left Skid -->
<Transform rotation='-0.71 0.71 0 -3.14translation='0.75 -1 -1.15'> </Transform>
<!-- Right Wing -->
<Transform rotation='0 0.71 0.71 3.14translation='-1.0 0.5 0.6'>
<Group DEF='RightWing'>
<Shape DEF='RightWingShape'>
<IS>
<connect nodeField='appearanceprotoField='fuselageColor'/>
</IS>
<Extrusion crossSection='-4.2 0.0 -4.1 0.02 -4.0 0.04 -3.9 0.045 -3.82 0.04 -2.0 0.0 -3.82 -0.04 -3.9 -0.045 -4.0 -0.04 -4.1 -0.02 -4.2 0.0scale='0.475 1.0 0.3 1.0spine='0.1 0.0 0.0 0.0 1.8 0.0'/>
</Shape>
<!-- End Wing Attachment -->
<Transform rotation='1 0 0 3.14translation='-1.4 1.75 -0.15'>
<Shape DEF='WingAttachmentShape'>
<IS>
<connect nodeField='appearanceprotoField='fuselageColor'/>
</IS>
<Extrusion crossSection='-0.1 0.0 0.1 0.0 0.1 -0.2 -0.1 -0.2 -0.1 0.0scale='0.9 0.9 0.95 0.95 1.0 1.0 1.0 1.0 0.5 0.5 0.45 0.45 0.4 0.4spine='0.0 0.0 0.0 0.05 0.0 0.0 0.1 0.0 0.0 0.6 0.0 0.0 1.0 0.0 0.0 1.05 0.0 0.0 1.1 0.0 0.0'/>
</Shape>
</Transform>
<!-- Middle Wing Attachment -->
<Transform rotation='1 0 0 3.14translation='-1.7 0.75 -0.15'>
<Shape USE='WingAttachmentShape'/>
</Transform>
</Group>
<!-- Right Rocket Pod -->
<Transform rotation='0 0 1 1.57translation='-1 1.6 -0.5'> </Transform>
</Transform>
<!-- Left Wing -->
<Transform rotation='0 0.71 0.71 3.14translation='-1.0 0.5 -0.6'>
<Group DEF='LeftWing'>
<Shape DEF='LeftWingShape'>
<IS>
<connect nodeField='appearanceprotoField='fuselageColor'/>
</IS>
<Extrusion convex='falsecrossSection='4.2 0.0 4.1 -0.02 4.0 -0.04 3.9 -0.045 3.82 -0.04 2.0 0.0 3.82 0.04 3.9 0.045 4.0 0.04 4.1 0.02 4.2 0.0scale='0.475 1.0 0.3 1.0spine='0.1 -0.0 0.0 0.0 -1.8 0.0'/>
</Shape>
<!-- End Wing Attachment -->
<Transform rotation='1 0 0 3.14translation='-1.4 -1.75 -0.15'>
<Shape USE='WingAttachmentShape'/>
</Transform>
<!-- Middle Wing Attachment -->
<Transform rotation='1 0 0 3.14translation='-1.7 -0.75 -0.15'>
<Shape USE='WingAttachmentShape'/>
</Transform>
</Group>
<!-- Inline Left Rocket Pod -->
<Transform rotation='0 0 1 1.57translation='-1 -1.6 -0.5'>
<Inline USE='RocketPod'/>
</Transform>
</Transform>
<!-- Main Rotor -->
<Transform translation='0 2.7 0'>
<!-- ROUTE information for MainRotor node:  [from InFlightStatusScript.status to rotationOn ] -->
<ProtoInstance name='FourBladeMainRotorDEF='MainRotor'/>
</Transform>
</Group>
<ROUTE fromNode='InFlightStatusScriptfromField='statustoNode='HeloFlyingAudioCliptoField='set_loop'/>
<ROUTE fromNode='InFlightStatusScriptfromField='statustoNode='MainRotortoField='rotationOn'/>
<ROUTE fromNode='InFlightStatusScriptfromField='statustoNode='TailRotortoField='rotationOn'/>
<ROUTE fromNode='InFlightStatusScriptfromField='statustoNode='BottomACLightClocktoField='set_enabled'/>
<ROUTE fromNode='InFlightStatusScriptfromField='statustoNode='TopACLightClocktoField='set_enabled'/>
<ROUTE fromNode='BottomACLightClockfromField='fraction_changedtoNode='BottomLightColorPathtoField='set_fraction'/>
<ROUTE fromNode='BottomLightColorPathfromField='value_changedtoNode='BottomLightColortoField='set_emissiveColor'/>
<ROUTE fromNode='TopACLightClockfromField='fraction_changedtoNode='TopLightColorPathtoField='set_fraction'/>
<ROUTE fromNode='TopLightColorPathfromField='value_changedtoNode='TopLightColortoField='set_emissiveColor'/>
</ProtoBody>
</ProtoDeclare>
<!-- ================================================================================================================ -->
<!-- Example Helicopters -->
<Background skyColor='.4 .4 .6'/>
<Viewpoint description='Select Helicopterorientation='0 1 0 1.57position='12 2.5 0'/>
<Transform translation='0 6.5 0'>
<Billboard>
<Shape>
<Appearance>
<Material diffuseColor='0.8 0.8 0'/>
</Appearance>
<Text string='"Select Example Helicopter Overall Paint Scheme"'>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
</Text>
</Shape>
<Transform translation='0 -1.5 0'>
<Transform translation='-5 0 0'>
<!-- ROUTE information for TOUCH_Green node:  [from isActive to EXAMPLE_SELECTION.touchedGreen ] -->
<TouchSensor DEF='TOUCH_Greendescription='touch for green material'/>
<Shape>
<Appearance>
<!-- ROUTE information for MATERIAL_Green node:  [from EXAMPLE_SELECTION.greenSelectionColor to diffuseColor ] -->
<Material DEF='MATERIAL_GreendiffuseColor='0 0.8 0'/>
</Appearance>
<Text string='"Green"'>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
</Text>
</Shape>
<Shape>
<Box size='2 1 .01'/>
<Appearance DEF='TransparentMaterial'>
<Material transparency='0.9'/>
</Appearance>
</Shape>
</Transform>
<Transform>
<!-- ROUTE information for TOUCH_Camouflage node:  [from isActive to EXAMPLE_SELECTION.touchedCamouflage ] -->
<TouchSensor DEF='TOUCH_Camouflagedescription='touch for camoflage material'/>
<Shape>
<Appearance>
<!-- ROUTE information for MATERIAL_Camouflage node:  [from EXAMPLE_SELECTION.camouflageSelectionColor to diffuseColor ] -->
<Material DEF='MATERIAL_CamouflagediffuseColor='0.8 0 0'/>
</Appearance>
<Text string='"Camouflage"'>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
</Text>
</Shape>
<Shape>
<Box size='4 1 .01'/>
<Appearance USE='TransparentMaterial'/>
</Shape>
</Transform>
<Transform translation='4 0 0'>
<!-- ROUTE information for TOUCH_Grey node:  [from isActive to EXAMPLE_SELECTION.touchedGrey ] -->
<TouchSensor DEF='TOUCH_Greydescription='touch for grey material'/>
<Shape>
<Appearance>
<!-- ROUTE information for MATERIAL_Grey node:  [from EXAMPLE_SELECTION.greySelectionColor to diffuseColor ] -->
<Material DEF='MATERIAL_GreydiffuseColor='0.8 0 0'/>
</Appearance>
<Text string='"Grey"'>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
</Text>
</Shape>
<Shape>
<Box size='1 1 0.01'/>
<Appearance USE='TransparentMaterial'/>
</Shape>
</Transform>
</Transform>
</Billboard>
</Transform>
<!-- ROUTE information for EXAMPLE_SWITCH node:  [from EXAMPLE_SELECTION.selection to whichChoice ] -->
<Switch DEF='EXAMPLE_SWITCHwhichChoice='0'> </Switch>
<!-- ROUTE information for EXAMPLE_SELECTION node:  [from TOUCH_Green.isActive to touchedGreen ] [from TOUCH_Camouflage.isActive to touchedCamouflage ] [from TOUCH_Grey.isActive to touchedGrey ] [from greenSelectionColor to MATERIAL_Green.diffuseColor ] [from camouflageSelectionColor to MATERIAL_Camouflage.diffuseColor ] [from greySelectionColor to MATERIAL_Grey.diffuseColor ] [from selection to EXAMPLE_SWITCH.whichChoice ] -->
<Script DEF='EXAMPLE_SELECTION'>
<field name='touchedGreentype='SFBoolaccessType='inputOnly'/>
<field name='touchedCamouflagetype='SFBoolaccessType='inputOnly'/>
<field name='touchedGreytype='SFBoolaccessType='inputOnly'/>
<field name='selectiontype='SFInt32accessType='outputOnly'/>
<field name='greenSelectionColortype='SFColoraccessType='outputOnly'/>
<field name='camouflageSelectionColortype='SFColoraccessType='outputOnly'/>
<field name='greySelectionColortype='SFColoraccessType='outputOnly'/>
<![CDATA[
      
ecmascript:  

function touchedGreen(value, ts) 
{
	selection = 0;
	greenSelectionColor = new SFColor(0, 0.8, 0);
	camouflageSelectionColor = new SFColor(0.8, 0, 0);
	greySelectionColor = new SFColor(0.8, 0, 0);
}
function touchedCamouflage(value, ts) 
{
	selection = 1;
	greenSelectionColor = new SFColor(0.8, 0, 0);
	camouflageSelectionColor = new SFColor(0, 0.8, 0);
	greySelectionColor = new SFColor(0.8, 0, 0);
}
function touchedGrey(value, ts) 
{
	selection = 2;
	greenSelectionColor = new SFColor(0.8, 0, 0);
	camouflageSelectionColor = new SFColor(0.8, 0, 0);
	greySelectionColor = new SFColor(0, 0.8, 0);
}

    
]]>
</Script>
<ROUTE fromNode='TOUCH_GreenfromField='isActivetoNode='EXAMPLE_SELECTIONtoField='touchedGreen'/>
<ROUTE fromNode='TOUCH_CamouflagefromField='isActivetoNode='EXAMPLE_SELECTIONtoField='touchedCamouflage'/>
<ROUTE fromNode='TOUCH_GreyfromField='isActivetoNode='EXAMPLE_SELECTIONtoField='touchedGrey'/>
<ROUTE fromNode='EXAMPLE_SELECTIONfromField='greenSelectionColortoNode='MATERIAL_GreentoField='diffuseColor'/>
<ROUTE fromNode='EXAMPLE_SELECTIONfromField='camouflageSelectionColortoNode='MATERIAL_CamouflagetoField='diffuseColor'/>
<ROUTE fromNode='EXAMPLE_SELECTIONfromField='greySelectionColortoNode='MATERIAL_GreytoField='diffuseColor'/>
<ROUTE fromNode='EXAMPLE_SELECTIONfromField='selectiontoNode='EXAMPLE_SWITCHtoField='whichChoice'/>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definitions : FourBladeMainRotor, TwoBladeTailRotor

Index for ProtoDeclare definition : SuperCobra

Index for DEF nodes : Black, BottomACLightClock, BottomLightColor, BottomLightColorPath, CenterBarCoord, CenterBarShape, Cockpit, CockpitBackWallShape, CockpitBottom, CockpitBottomShape, CockpitFloorShape, CockpitTopShape, Cowling, CowlingShape, DetailViewpoint, Engine, EngineInsideColor, EngineShape, EngineStripShape, EXAMPLE_SELECTION, EXAMPLE_SWITCH, FrontCockpitBottomShape, FrontGunBaseShape, FuselageBody, FuselageBottom, GlassPaneCoord, Gray, HeloFlyingAudioClip, HeloNameViewpoint, HeloWorldInfo, HorizontalStabilizerShape, InFlightStatusScript, LeftVerticalStabilizer, LeftWing, LeftWingShape, MainFuselageBody, MainFuselageShape, MainRotor, MATERIAL_Camouflage, MATERIAL_Green, MATERIAL_Grey, NoseCoord, NoseShape1, NoseShape2, RightVerticalStabilizer, RightWing, RightWingShape, RocketPod, Seat, SeatColor, TailBoom, TailBoomShape, TailRotor, TailRotorDriveShaftShape, TopACLightClock, TopLightColor, TopLightColorPath, TOUCH_Camouflage, TOUCH_Green, TOUCH_Grey, TransparentMaterial, VerticalFin, VerticalFinShape, VerticalStabilizerShape, WingAttachmentShape

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6, Viewpoint_7, HeloNameViewpoint
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D extensibility)
    <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->