<?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='HarpoonPrototype.x3d'/>
<meta name='descriptioncontent='RGM-84D, Harpoon Anti-Ship Cruise missile prototype with built-in animation.'/>
<meta name='creatorcontent='James Harney'/>
<meta name='createdcontent='9 August 2001'/>
<meta name='modifiedcontent='2 January 2019'/>
<meta name=' warning content=' needs to be realigned with X-axis nose and Y-axis up. '/>
<meta name='referencecontent=' http://www.fas.org/man/dod-101/sys/smart/agm-84.htm '/>
<meta name='referencecontent=' http://www.fas.org/man/dod-101/sys/smart/harpn01.jpg '/>
<meta name='referencecontent='harpn01.jpg'/>
<meta name='referencecontent='AGM-84-Harpoon-SLAM-SmartWeapons_files'/>
<meta name='referencecontent=' https://savage.nps.edu/Savage/CruiserUnitedStates/Cruiser.x3d '/>
<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='accessRightscontent='soundpermissions.html'/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/Weapons/Missiles/HarpoonPrototype.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<ProtoDeclare name='RGM-84D'>
<ProtoInterface>
<field name='STARTLAUNCHtype='SFBoolaccessType='inputOnly'/>
<field name='THETIMEtype='SFTimeaccessType='inputOnly'/>
</ProtoInterface>
<ProtoBody>
<Transform DEF='RGMSSMrotation='0 0 1 -1.57translation='2.5 0 0'>
<Transform>
<!-- Built as well as possible to scale from pictures on FAS web site. Missile speed and distance for engagement are not what they are in real life for demonstration purposes. -->
<!-- Used with permission. See soundpermissions.html for details. -->
<Sound maxBack='50000maxFront='50000'>
<!-- ROUTE information for RGMSOUND node:  [from RGMCLOCK.startTime to startTime ] [from RGMCLOCK.stopTime to set_stopTime ] -->
<AudioClip DEF='RGMSOUNDdescription='Missile flight'
  url=' "MISSILE1.wav" "https://savage.nps.edu/Savage/Weapons/Missiles/MISSILE1.wav" '/>
</Sound>
<Transform translation='0 -2.22 0'>
<Group DEF='MISSILEBODY'>
<Transform>
<Shape>
<Appearance DEF='RGMCOLOR'>
<Material diffuseColor='1 1 1shininess='.7specularColor='1 1 1'/>
</Appearance>
<Cylinder height='4.55radius='.3429'/>
</Shape>
</Transform>
</Group>
</Transform>
<Transform scale='1.31 1.31 1.31'>
<Group DEF='CONE'>
<Shape>
<Appearance USE='RGMCOLOR'/>
<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'>
<Transform translation='.34 -3.02 0'>
<Shape DEF='FIN'>
<IndexedFaceSet solid='falsecoordIndex='0 1 2 3 4 -1'>
<Coordinate point='0 0 0 0 1.1 0 .5 .75 0 .5 .25 0 0 0 0'/>
</IndexedFaceSet>
<Appearance DEF='FINCOLOR'>
<Material diffuseColor='.9 .9 .9'/>
</Appearance>
</Shape>
</Transform>
<Transform rotation='0 1 0 1.57translation='0 -3.02 -.34'>
<Shape USE='FIN'/>
</Transform>
<Transform rotation='0 1 0 -1.57translation='0 -3.02 .34'>
<Shape USE='FIN'/>
</Transform>
<Transform rotation='0 1 0 3.14translation='-.34 -3.02 0'>
<Shape USE='FIN'/>
</Transform>
</Group>
<Group DEF='AFTFIN'>
<Transform translation='.34 -4.4 0'>
<Shape DEF='BACKFIN'>
<Appearance USE='FINCOLOR'/>
<IndexedFaceSet solid='falsecoordIndex='0 1 2 3 4 -1'>
<Coordinate point='0 0 0 0 .5 0 .5 .35 0 .5 .15 0 0 0 0'/>
</IndexedFaceSet>
</Shape>
</Transform>
<Transform rotation='0 1 0 1.57translation='0 -4.4 -.34'>
<Shape USE='BACKFIN'/>
</Transform>
<Transform rotation='0 1 0 3.14translation='-.34 -4.4 0'>
<Shape USE='BACKFIN'/>
</Transform>
<Transform rotation='0 1 0 -1.57translation='0 -4.4 .34'>
<Shape USE='BACKFIN'/>
</Transform>
<Transform translation='0 -4.45 0'>
<Shape>
<Cylinder height='.1radius='.35'/>
<Appearance>
<Material diffuseColor='1 0 0'/>
</Appearance>
</Shape>
</Transform>
</Group>
</Transform>
<Transform DEF='BOOSTSECT'>
<Group DEF='BOOSTER'>
<Transform translation='0 -4.85 0'>
<Shape>
<Appearance USE='RGMCOLOR'/>
<Cylinder height='.69radius='.3429'/>
</Shape>
</Transform>
<Group DEF='BOOSTERFIN'>
<Transform translation='.34 -5.2 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 -5.2 -.34'>
<Shape USE='BFIN'/>
</Transform>
<Transform rotation='0 1 0 3.14translation='-.34 -5.2 0'>
<Shape USE='BFIN'/>
</Transform>
<Transform rotation='0 1 0 -1.57translation='0 -5.2 .34'>
<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 -7.51 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>
<Group DEF='BANDS'>
<Transform translation='0 -1.87 0'>
<Shape>
<Cylinder height='.1radius='.35'/>
<Appearance>
<Material diffuseColor='1 0 0'/>
</Appearance>
</Shape>
</Transform>
<Transform translation='0 -1.62 0'>
<Shape>
<Cylinder height='.1radius='.35'/>
<Appearance>
<Material diffuseColor='1 0 0'/>
</Appearance>
</Shape>
</Transform>
</Group>
</Transform>
</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'/>
<!-- ROUTE information for RGMCLOCK node:  [from TimeFilter2.startEventTime to set_startTime ] [from startTime to RGMSOUND.startTime ] [from stopTime to RGMSOUND.set_stopTime ] -->
<TimeSensor DEF='RGMCLOCKcycleInterval='28'/>
<!-- ROUTE information for TimeFilter2 node:  [from startEventTime to RGMCLOCK.set_startTime ] [from startEventTime to EXHAUSTCLOCK.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>
</Transform>
<ROUTE fromNode='TimeFilter2fromField='startEventTimetoNode='RGMCLOCKtoField='set_startTime'/>
<ROUTE fromNode='RGMCLOCKfromField='startTimetoNode='RGMSOUNDtoField='startTime'/>
<ROUTE fromNode='RGMCLOCKfromField='stopTimetoNode='RGMSOUNDtoField='set_stopTime'/>
<ROUTE fromNode='TimeFilter2fromField='startEventTimetoNode='EXHAUSTCLOCKtoField='set_startTime'/>
<ROUTE fromNode='EXHAUSTCLOCKfromField='fraction_changedtoNode='EXHINTtoField='set_fraction'/>
<ROUTE fromNode='EXHINTfromField='value_changedtoNode='EXHAUSTtoField='set_scale'/>
</ProtoBody>
</ProtoDeclare>
<!-- ==================== -->
<Background skyColor='0.604 0.753 0.804'/>
<Anchor description='Harpoon Exampleparameter='"target=_blank"'
  url=' "HarpoonExample.x3d" "../../Weapons/Missiles/HarpoonExample.x3d" "https://savage.nps.edu/Savage/Weapons/Missiles/HarpoonExample.x3d" "HarpoonExample.wrl" "../../Weapons/Missiles/HarpoonExample.wrl" "https://savage.nps.edu/Savage/Weapons/Missiles/HarpoonExample.wrl" '>
<Shape>
<Text string='"HarpoonPrototype" "is a prototype declaration file" "" "To see an example scene" "click on this text and view" "HarpoonExample"'>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
</Text>
<Appearance>
<Material diffuseColor='0.4 0.4 0.4'/>
</Appearance>
</Shape>
</Anchor>
</Scene>
</X3D>
<!--

Index for ProtoDeclare definition : RGM-84D

Index for DEF nodes : AFTFIN, BACKFIN, BANDS, BFIN, BOOSTER, BOOSTERFIN, BOOSTSECT, CONE, EXHAUST, EXHAUSTCLOCK, EXHINT, FIN, FINCOLOR, Flames, MIDFIN, MISSILEBODY, RGMCLOCK, RGMCOLOR, RGMSOUND, RGMSSM, TimeFilter2
-->

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