<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://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 =' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='TomahawkPrototype.x3d'/>
<meta name='descriptioncontent='BGM-109, Tomahawk Land Attack Missile prototype'/>
<meta name='creatorcontent='James Harney'/>
<meta name='createdcontent='4 September 2001'/>
<meta name='modifiedcontent='16 January 2014'/>
<meta name='referencecontent=' http://www.fas.org/man/dod-101/sys/smart/bgm-109.htm '/>
<meta name='referencecontent=' http://www.specialoperations.com/multimedia/sounds.html '/>
<meta name='referencecontent=' http://www.specialoperations.com/multimedia/sounds.html '/>
<meta name='referencecontent=' See url "soundpermissions.html"
for copyright info and use on missile1.au and exp03.au that are converted to missile1.wav and exp03.wav for use in this file/model '/>

<meta name='referencecontent='soundpermissions.html'/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/Weapons/Missiles/TomahawkPrototype.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<ProtoDeclare name='BGM-109'>
<ProtoInterface>
<field name='STARTLAUNCHtype='SFBoolaccessType='inputOnly'/>
<field name='THETIMEtype='SFTimeaccessType='inputOnly'/>
</ProtoInterface>
<ProtoBody>
<Transform DEF='TLAMrotation='0 1 0 -1.57'>
<Transform>
<!-- Used with permission. See soundpermissions.html for details. -->
<Sound maxBack='50000maxFront='50000'>
<!-- ROUTE information for TLAMSOUND node:  [from TCLOCK.startTime to startTime ] [from TCLOCK.stopTime to stopTime ] -->
<AudioClip DEF='TLAMSOUNDdescription='Tomahawk missile'
  url=' "MISSILE1.wav" "https://savage.nps.edu/Savage/Weapons/Missiles/MISSILE1.wav" '/>
</Sound>
<Transform translation='0 -2.775 0'>
<Group DEF='MISSILEBODY'>
<Transform>
<Shape>
<Appearance DEF='TLAMCOLOR'>
<Material diffuseColor='1 1 1shininess='.7specularColor='1 1 1'/>
</Appearance>
<Cylinder height='5.56radius='.25905'/>
</Shape>
</Transform>
</Group>
<Transform rotation='0 0 1 -1.56translation='-.27 2.5 0'>
<Transform rotation='1 0 0 1.56'>
<Shape>
<Text string='"TOMAHAWK"'>
<FontStyle size='.225style='BOLD'/>
</Text>
<Appearance>
<Material diffuseColor='0 0 0'/>
</Appearance>
</Shape>
</Transform>
</Transform>
<Transform rotation='0 0 1 1.56translation='.27 .25 0'>
<Transform rotation='1 0 0 1.56'>
<Shape>
<Text string='"U.S. NAVY"'>
<FontStyle size='.225style='BOLD'/>
</Text>
<Appearance>
<Material diffuseColor='0 0 0'/>
</Appearance>
</Shape>
</Transform>
</Transform>
</Transform>
<Transform>
<Group DEF='CONE'>
<Shape>
<Appearance>
<Material diffuseColor='1 1 1shininess='.7specularColor='1 1 1'/>
</Appearance>
<Extrusion creaseAngle='1.785crossSection='0.267 0.000 0.231 -0.134 0.134 -0.231 0.0 -0.267 -0.134 -0.231 -0.231 -0.134 -0.267 0.000 -0.231 0.134 -0.134 0.231 0.0 0.267 0.134 0.231 0.231 0.134 0.267 0.0scale='1.00 1.00 0.95 0.95 0.88 0.88 0.76 0.76 0.48 0.48spine='0.00 0.00 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'/>
</Shape>
</Group>
</Transform>
<Transform>
<Group DEF='MIDFIN'>
<!-- ROUTE information for STBDFIN node:  [from FINANGLE.value_changed to set_rotation ] [from FINPOSIT.value_changed to set_translation ] -->
<Transform DEF='STBDFINrotation='0 0 1 -1.57translation='-.25905 -3.5 0'>
<Transform>
<Shape>
<Appearance DEF='FINCOLOR'>
<Material diffuseColor='.9 .9 .9'/>
</Appearance>
<IndexedFaceSet solid='falsecoordIndex='0 1 2 3 4 -1'>
<Coordinate point='0 0 0 0 .5 0 1.2 .4 0 1.2 .1 0 0 0 0'/>
</IndexedFaceSet>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for PORTFIN node:  [from FINANGLEPORT.value_changed to set_rotation ] [from FINPOSITPORT.value_changed to set_translation ] -->
<Transform DEF='PORTFINrotation='0 0 1 1.57translation='.25905 -3.5 0'>
<Transform>
<Shape>
<Appearance>
<Material diffuseColor='.9 .9 .9'/>
</Appearance>
<IndexedFaceSet solid='falsecoordIndex='0 1 2 3 4 -1'>
<Coordinate point='0 0 0 0 .5 0 -1.2 .4 0 -1.2 .1 0 0 0 0'/>
</IndexedFaceSet>
</Shape>
<Transform/>
</Transform>
</Transform>
</Group>
</Transform>
<Transform DEF='BOOSTSECT'>
<Group DEF='BOOSTER'>
<Transform translation='0 -5.91 0'>
<Shape>
<Appearance USE='TLAMCOLOR'/>
<Cylinder height='.69radius='.25905'/>
</Shape>
</Transform>
<Group DEF='BOOSTERFIN'>
<Transform translation='.25905 -6.27 0'>
<Shape DEF='BFIN'>
<Appearance USE='FINCOLOR'/>
<IndexedFaceSet solid='falsecoordIndex='0 1 2 3 4 -1'>
<Coordinate point='0 0 0 0 .5 0 .5 .35 0 .5 0 0 0 0 0'/>
</IndexedFaceSet>
</Shape>
</Transform>
<Transform rotation='0 1 0 1.57translation='0 -6.27 -.25905'>
<Shape USE='BFIN'/>
</Transform>
<Transform rotation='0 1 0 3.14translation='-.25905 -6.27 0'>
<Shape USE='BFIN'/>
</Transform>
<Transform rotation='0 1 0 -1.57translation='0 -6.27 .25905'>
<Shape USE='BFIN'/>
</Transform>
</Group>
</Group>
<!-- ROUTE information for EXHAUST node:  [from EXHINT.value_changed to set_scale ] -->
<Transform DEF='EXHAUSTrotation='0 1 0 3.14scale='0.5 0.5 0.5translation='0 -8 0'>
<!-- Exhaust flames are from the torch example in the source book. -->
<Shape DEF='Flames'>
<!-- No appearance, use emissive shading -->
<IndexedFaceSet coordIndex='0 1 2 -1 3 4 5 -1 6 7 8 -1'>
<Coordinate point='0.25 0.0 0.00 0.15 1.0 0.10 0.05 0.0 0.15 0.18 0.0 0.05 0.00 1.2 0.05 -0.10 0.0 0.05 -0.00 0.0 0.15 -0.13 0.8 0.10 -0.25 -0.25 0.00'/>
<Color color='1.0 0.0 0.0 0.9 0.5 0 1.0 0.0 0.0 0.9 0.3 0 1.0 1.0 0.0 0.9 0.3 0 0.7 0.1 0.2 0.9 0.8 0 1.0 0.0 0.0'/>
</IndexedFaceSet>
<Appearance>
<Material transparency='.15'/>
</Appearance>
</Shape>
<Transform rotation='0 1 0 1.57scale='0.9 0.9 1'>
<Shape USE='Flames'/>
</Transform>
<Transform rotation='0 1 0 -1.57scale='0.9 0.9 1'>
<Shape USE='Flames'/>
</Transform>
</Transform>
</Transform>
</Transform>
<Transform rotation='1 0 0 -.35translation='0 -4.5 -.1'>
<Shape>
<Box size='.25 .5 .4'/>
<Appearance>
<Material diffuseColor='.91 .91 .91'/>
</Appearance>
</Shape>
</Transform>
<!-- ROUTE information for EXHINT node:  [from EXHAUSTCLOCK.fraction_changed to set_fraction ] [from value_changed to EXHAUST.set_scale ] -->
<PositionInterpolator DEF='EXHINTkey='0 .25 .5 .75 1keyValue='1.4 1.4 1.4 2 2 2 2.5 2.5 2.5 2 2 2 1.4 1.4 1.4'/>
<!-- ROUTE information for EXHAUSTCLOCK node:  [from TimeFilter2.startEventTime to set_startTime ] [from fraction_changed to EXHINT.set_fraction ] -->
<TimeSensor DEF='EXHAUSTCLOCKloop='true'/>
<TimeSensor DEF='TLAMCLOCKcycleInterval='16enabled='false'/>
<!-- ROUTE information for TimeFilter2 node:  [from startEventTime to TCLOCK.set_startTime ] [from startEventTime to EXHAUSTCLOCK.set_startTime ] [from startEventTime to FINCLOCK.set_startTime ] -->
<Script DEF='TimeFilter2'>
<field name='setStarttype='SFBoolaccessType='inputOnly'/>
<field name='InputTimetype='SFTimeaccessType='inputOnly'/>
<field name='startEventTimetype='SFTimeaccessType='outputOnly'/>
<IS>
<connect nodeField='setStartprotoField='STARTLAUNCH'/>
<connect nodeField='InputTimeprotoField='THETIME'/>
</IS>
<![CDATA[
            
ecmascript:


function setStart ( value, InputTime ) {
                         
	startEventTime = InputTime;
	
}

          
]]>
</Script>
<!-- ROUTE information for FINCLOCK node:  [from TimeFilter2.startEventTime to set_startTime ] [from fraction_changed to FINANGLE.set_fraction ] [from fraction_changed to FINPOSIT.set_fraction ] [from fraction_changed to FINANGLEPORT.set_fraction ] [from fraction_changed to FINPOSITPORT.set_fraction ] -->
<TimeSensor DEF='FINCLOCKcycleInterval='6'/>
<!-- ROUTE information for TCLOCK node:  [from TimeFilter2.startEventTime to set_startTime ] [from startTime to TLAMSOUND.startTime ] [from stopTime to TLAMSOUND.stopTime ] -->
<TimeSensor DEF='TCLOCKcycleInterval='28'/>
<!-- ROUTE information for FINANGLE node:  [from FINCLOCK.fraction_changed to set_fraction ] [from value_changed to STBDFIN.set_rotation ] -->
<OrientationInterpolator DEF='FINANGLEkey='.7 1keyValue='0 0 1 -1.57 0 0 1 0'/>
<!-- ROUTE information for FINPOSIT node:  [from FINCLOCK.fraction_changed to set_fraction ] [from value_changed to STBDFIN.set_translation ] -->
<PositionInterpolator DEF='FINPOSITkey='.7 1keyValue='-.25905 -3.5 0 .25905 -3.5 0'/>
<!-- ROUTE information for FINPOSITPORT node:  [from FINCLOCK.fraction_changed to set_fraction ] [from value_changed to PORTFIN.set_translation ] -->
<PositionInterpolator DEF='FINPOSITPORTkey='.7 1keyValue='.25905 -3.5 0 -.25905 -3.5 0'/>
<!-- ROUTE information for FINANGLEPORT node:  [from FINCLOCK.fraction_changed to set_fraction ] [from value_changed to PORTFIN.set_rotation ] -->
<OrientationInterpolator DEF='FINANGLEPORTkey='.7 1keyValue='0 0 1 1.57 0 0 1 0'/>
</Transform>
<ROUTE fromNode='TimeFilter2fromField='startEventTimetoNode='TCLOCKtoField='set_startTime'/>
<ROUTE fromNode='TCLOCKfromField='startTimetoNode='TLAMSOUNDtoField='startTime'/>
<ROUTE fromNode='TCLOCKfromField='stopTimetoNode='TLAMSOUNDtoField='stopTime'/>
<ROUTE fromNode='TimeFilter2fromField='startEventTimetoNode='EXHAUSTCLOCKtoField='set_startTime'/>
<ROUTE fromNode='EXHAUSTCLOCKfromField='fraction_changedtoNode='EXHINTtoField='set_fraction'/>
<ROUTE fromNode='EXHINTfromField='value_changedtoNode='EXHAUSTtoField='set_scale'/>
<ROUTE fromNode='TimeFilter2fromField='startEventTimetoNode='FINCLOCKtoField='set_startTime'/>
<ROUTE fromNode='FINCLOCKfromField='fraction_changedtoNode='FINANGLEtoField='set_fraction'/>
<ROUTE fromNode='FINCLOCKfromField='fraction_changedtoNode='FINPOSITtoField='set_fraction'/>
<ROUTE fromNode='FINCLOCKfromField='fraction_changedtoNode='FINANGLEPORTtoField='set_fraction'/>
<ROUTE fromNode='FINCLOCKfromField='fraction_changedtoNode='FINPOSITPORTtoField='set_fraction'/>
<ROUTE fromNode='FINANGLEfromField='value_changedtoNode='STBDFINtoField='set_rotation'/>
<ROUTE fromNode='FINPOSITfromField='value_changedtoNode='STBDFINtoField='set_translation'/>
<ROUTE fromNode='FINANGLEPORTfromField='value_changedtoNode='PORTFINtoField='set_rotation'/>
<ROUTE fromNode='FINPOSITPORTfromField='value_changedtoNode='PORTFINtoField='set_translation'/>
</ProtoBody>
</ProtoDeclare>
<!-- ==================== -->
<Background skyColor='0.604 0.753 0.804'/>
<Anchor description='Tomahawk Exampleparameter='"target=_blank"'
  url=' "TomahawkExample.wrl" "../../Weapons/Missiles/TomahawkExample.wrl" "https://savage.nps.edu/Savage/Weapons/Missiles/TomahawkExample.wrl" "TomahawkExample.x3d" "../../Weapons/Missiles/TomahawkExample.x3d" "https://savage.nps.edu/Savage/Weapons/Missiles/TomahawkExample.x3d" '>
<Shape>
<Text string='"TomahawkPrototype" "is a prototype declaration file" "" "To see an example scene" "click on this text and view" "TomahawkExample"'>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
</Text>
<Appearance/>
</Shape>
</Anchor>
</Scene>
</X3D>
<!--

Index for ProtoDeclare definition : BGM-109

Index for DEF nodes : BFIN, BOOSTER, BOOSTERFIN, BOOSTSECT, CONE, EXHAUST, EXHAUSTCLOCK, EXHINT, FINANGLE, FINANGLEPORT, FINCLOCK, FINCOLOR, FINPOSIT, FINPOSITPORT, Flames, MIDFIN, MISSILEBODY, PORTFIN, STBDFIN, TCLOCK, TimeFilter2, TLAM, TLAMCLOCK, TLAMCOLOR, TLAMSOUND
-->

<!-- 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 -->