<head>
</head>
<!--
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
-->
<Scene>
<![CDATA[
ecmascript:
function inFlight(value, ts) {
status = value;
}
]]>
</Script>
<Sound direction='1.0 1.0 1.0' maxBack='200.0' maxFront='200.0' minBack='20.0' minFront='20.0'>
</Sound>
<!-- Tailboom -->
<Transform DEF='TailBoom' rotation='0 0 -1 1.66' scale='1.2 1.2 1.0' translation='-7.8 0.78 0.0'>
<!-- Tailboom shape -->
<Transform rotation='0 1 0 1.57'>
<Shape DEF='TailBoomShape'>
<IS>
</IS>
<Extrusion convex='false' creaseAngle='0.8' crossSection='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.5' endCap='false' orientation='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 0' scale='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.6' solid='false' spine='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.0' rotation='0.0 0.0 1.0 0.03' translation='-0.3 1.0 0.0'>
<Group>
<Shape DEF='TailRotorDriveShaftShape'>
</Shape>
</Group>
</Transform>
<!-- Horizontal stabilizer -->
<Transform rotation='0.58 0.58 0.58 2.09' translation='0 0.1 0'>
<Transform rotation='0 0 1 3.14'>
<Shape DEF='HorizontalStabilizerShape'>
</Shape>
</Transform>
<Transform DEF='LeftVerticalStabilizer' rotation='1 0 0 -1.57' translation='-0.05 -0.85 0.325'>
<Shape DEF='VerticalStabilizerShape'>
<IS>
</IS>
<!-- right, left, bottom, lower front, upper front, top, lower back, upper back -->
<IndexedFaceSet convex='false' coordIndex='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='RightVerticalStabilizer' rotation='1 0 0 -1.57' translation='-0.05 0.85 0.325'>
</Transform>
</Transform>
<!-- Vertical Fin -->
<Transform DEF='VerticalFin' rotation='0 0 1 1.57' scale='3.5 3.5 2.5' translation='1.45 0 0'>
<Shape DEF='VerticalFinShape'>
<IS>
</IS>
<IndexedFaceSet convex='false' coordIndex='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.05' translation='0.07 0.29 0.0'>
<Shape>
<Appearance DEF='Gray'>
<Material diffuseColor='.25 .25 .25'/>
</Appearance>
<Cylinder height='0.2' radius='0.008'/>
</Shape>
<!-- Tip part -->
<Transform rotation='0 0 1 2.62' translation='-0.0075 -0.11 0'>
<Shape>
<Appearance USE='Gray'/>
<Cylinder height='0.04' radius='0.008'/>
</Shape>
</Transform>
</Transform>
</Transform>
<!-- Tail Rotor -->
<Transform translation='-1.25 0.0 0.25'>
</Transform>
</Transform>
<!-- Fuselage -->
<Transform DEF='FuselageBody' rotation='0 1 0 -1.57' translation='0.4 1.78 0.0'>
<Transform DEF='MainFuselageBody'>
<Shape DEF='MainFuselageShape'>
<IS>
</IS>
<IndexedFaceSet creaseAngle='1.57' coordIndex='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.15' scale='0.6 0.9 1.0' translation='-0.65 -0.5 1.6'>
<Transform DEF='Engine' rotation='1 0 0 1.57' scale='0.25 0.25 0.25'>
<Shape DEF='EngineShape'>
</Shape>
<Transform>
</Transform>
<Transform translation='0 6.6 0'>
</Transform>
<!-- Left Middle Strip -->
<Transform rotation='0.58 0.58 0.58 2.09' translation='-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.09' translation='1.55 1.75 0'>
</Transform>
<!-- Left Upper Strip -->
<Transform rotation='0.58 0.58 0.58 2.09' translation='-1.55 1.75 -0.75'>
</Transform>
<!-- Right Upper Strip -->
<Transform rotation='0.58 0.58 0.58 2.09' translation='1.55 1.75 -0.75'>
</Transform>
<!-- Left Lower Strip -->
<Transform rotation='0.58 0.58 0.58 2.09' translation='-1.55 1.75 0.75'>
</Transform>
<!-- Right Lower Strip -->
<Transform rotation='0.58 0.58 0.58 2.09' translation='1.55 1.75 0.75'>
</Transform>
</Transform>
</Transform>
<!-- Right Engine -->
<Transform rotation='0 -1 0 0.15' scale='0.6 0.9 1.0' translation='0.65 -0.5 1.6'>
</Transform>
<!-- Cockpit -->
<Transform DEF='Cockpit' rotation='1 0 0 -1.57' translation='0.0 -0.4 1.51'>
<!-- Cockpit Bottom -->
<Transform DEF='CockpitBottom' rotation='0 1 0 3.14' translation='0 2 -1.6'>
<Shape DEF='CockpitBottomShape'>
</Shape>
<!-- Front Cockpit Bottom -->
<Transform translation='0 0 -0.325'>
<Shape DEF='FrontCockpitBottomShape'>
</Shape>
</Transform>
</Transform>
<!-- Cockpit Top -->
<Transform rotation='0 .71 .71 3.14' translation='0.0 2.0 0.4'>
<Shape DEF='CockpitTopShape'>
<IS>
</IS>
<IndexedFaceSet creaseAngle='1.57' coordIndex='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>
</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='CenterBarCoord' point='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.75' transparency='0.5'/>
</Appearance>
<IndexedFaceSet creaseAngle='0.8' coordIndex='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='GlassPaneCoord' point='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>
</IS>
<IndexedFaceSet creaseAngle='0.86' coordIndex='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='NoseCoord' point='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'>
</Shape>
</Transform>
</Transform>
<!-- Front Gun -->
<Transform translation='0 4.25 -1.35'>
<Shape DEF='FrontGunBaseShape'>
<IS>
</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.75' radius='0.05'/>
</Shape>
</Transform>
</Transform>
</Transform>
<!-- Cockpit Back Wall -->
<Transform translation='0 -0.575 -0.4'>
<Shape DEF='CockpitBackWallShape'>
<IS>
</IS>
<Box size='1.05 1.1 0.1'/>
</Shape>
</Transform>
<!-- Cockpit Floor -->
<Transform translation='0 -1.5 -1.8'>
<Shape DEF='CockpitFloorShape'>
<IS>
</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'>
</Transform>
</Transform>
<!-- Fuselage Bottom -->
<Group DEF='FuselageBottom'>
</Group>
<!-- Cowling -->
<Transform DEF='Cowling' scale='0.55 0.65 0.6' translation='0.48 1.8 0.0'>
</Transform>
<!-- Right Skid -->
<Transform rotation='0 0 1 -1.57' translation='0.75 -1 1.15'>
</Transform>
<!-- Left Skid -->
<Transform rotation='-0.71 0.71 0 -3.14' translation='0.75 -1 -1.15'>
</Transform>
<!-- Right Wing -->
<Transform rotation='0 0.71 0.71 3.14' translation='-1.0 0.5 0.6'>
<Group DEF='RightWing'>
<Shape DEF='RightWingShape'>
</Shape>
<!-- End Wing Attachment -->
<Transform rotation='1 0 0 3.14' translation='-1.4 1.75 -0.15'>
<Shape DEF='WingAttachmentShape'>
<IS>
</IS>
<Extrusion crossSection='-0.1 0.0 0.1 0.0 0.1 -0.2 -0.1 -0.2 -0.1 0.0' scale='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.4' spine='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.14' translation='-1.7 0.75 -0.15'>
</Transform>
</Group>
<!-- Right Rocket Pod -->
<Transform rotation='0 0 1 1.57' translation='-1 1.6 -0.5'>
</Transform>
</Transform>
<!-- Left Wing -->
<Transform rotation='0 0.71 0.71 3.14' translation='-1.0 0.5 -0.6'>
<Group DEF='LeftWing'>
<Shape DEF='LeftWingShape'>
</Shape>
<!-- End Wing Attachment -->
<Transform rotation='1 0 0 3.14' translation='-1.4 -1.75 -0.15'>
</Transform>
<!-- Middle Wing Attachment -->
<Transform rotation='1 0 0 3.14' translation='-1.7 -0.75 -0.15'>
</Transform>
</Group>
<!-- Inline Left Rocket Pod -->
<Transform rotation='0 0 1 1.57' translation='-1 -1.6 -0.5'>
</Transform>
</Transform>
<!-- Main Rotor -->
<Transform translation='0 2.7 0'>
</Transform>
</Group>
<ROUTE fromNode='InFlightStatusScript' fromField='status' toNode='HeloFlyingAudioClip' toField='set_loop'/>
<ROUTE fromNode='InFlightStatusScript' fromField='status' toNode='MainRotor' toField='rotationOn'/>
<ROUTE fromNode='InFlightStatusScript' fromField='status' toNode='TailRotor' toField='rotationOn'/>
<ROUTE fromNode='InFlightStatusScript' fromField='status' toNode='BottomACLightClock' toField='set_enabled'/>
<ROUTE fromNode='InFlightStatusScript' fromField='status' toNode='TopACLightClock' toField='set_enabled'/>
<ROUTE fromNode='BottomACLightClock' fromField='fraction_changed' toNode='BottomLightColorPath' toField='set_fraction'/>
<ROUTE fromNode='BottomLightColorPath' fromField='value_changed' toNode='BottomLightColor' toField='set_emissiveColor'/>
<ROUTE fromNode='TopACLightClock' fromField='fraction_changed' toNode='TopLightColorPath' toField='set_fraction'/>
<ROUTE fromNode='TopLightColorPath' fromField='value_changed' toNode='TopLightColor' toField='set_emissiveColor'/>
</ProtoBody>
</ProtoDeclare>
<!-- ================================================================================================================ -->
<!-- Example Helicopters -->
<Background skyColor='.4 .4 .6'/>
<Viewpoint description='Select Helicopter' orientation='0 1 0 1.57' position='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_Green' description='touch for green material'/>
<Shape>
<Appearance>
</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_Camouflage' description='touch for camoflage material'/>
<Shape>
<Appearance>
</Appearance>
<Text string='"Camouflage"'>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
</Text>
</Shape>
<Shape>
</Shape>
</Transform>
<Transform translation='4 0 0'>
<!-- ROUTE information for TOUCH_Grey node:
[from isActive to EXAMPLE_SELECTION.touchedGrey
]
-->
<TouchSensor DEF='TOUCH_Grey' description='touch for grey material'/>
<Shape>
<Appearance>
</Appearance>
<Text string='"Grey"'>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
</Text>
</Shape>
<Shape>
</Shape>
</Transform>
</Transform>
</Billboard>
</Transform>
<!-- ROUTE information for EXAMPLE_SWITCH node:
[from EXAMPLE_SELECTION.selection to whichChoice
]
-->
<Switch DEF='EXAMPLE_SWITCH' whichChoice='0'>
<Transform rotation='0 1 0 1.57'>
</Transform>
<Transform rotation='0 1 0 1.57'>
</Transform>
<Transform rotation='0 1 0 1.57'>
</Transform>
</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='touchedGreen' type='SFBool' accessType='inputOnly'/>
<field name='touchedCamouflage' type='SFBool' accessType='inputOnly'/>
<field name='touchedGrey' type='SFBool' accessType='inputOnly'/>
<field name='selection' type='SFInt32' accessType='outputOnly'/>
<field name='greenSelectionColor' type='SFColor' accessType='outputOnly'/>
<field name='camouflageSelectionColor' type='SFColor' accessType='outputOnly'/>
<field name='greySelectionColor' type='SFColor' accessType='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);
}
]]>
</Scene>