<?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='PhysicsBasedExplosionPrototype.x3d'/>
<meta name='descriptioncontent="A physics-based explosion model for 1/3 ton of TNT from the US Army's TNT Equivalency Model for modeling the attack on the USS COLE by Al-Qaida. Takes an input time as trigger parameter. Rings correspond to levels of damage on steel(unclass levels for representation purposes)."/>
<meta name='creatorcontent='James Harney'/>
<meta name='createdcontent='13 October 2001'/>
<meta name='modifiedcontent='14 January 2014'/>
<meta name='referencecontent=' http://www.foia.navy.mil/usscole/index.html '/>
<meta name='referencecontent='http//www.fas.org/man/dod-101/navy/docs/es310/warheads/Warheads.htm'/>
<meta name='referencecontent='http//www.fas.org/man/dod-101/navy/docs/es310/dam_crit/dam_crit.htm'/>
<meta name='referencecontent='http//www.eqe.com/publications/revf94/blast.htm'/>
<meta name='referencecontent='http//www.siggraph.org/education/materials/HyperGraph/animation/particle.htm'/>
<meta name='subjectcontent='TNT Equivalency Based Explosion, VRML X3D'/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionPrototype.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<ProtoDeclare name='TNTBasedExplosionappinfo='Physics-based explosion model'>
<ProtoInterface>
<field name='startExplosiontype='SFTimeaccessType='inputOnly'/>
</ProtoInterface>
<ProtoBody>
<Group>
<Group>
<!-- ROUTE information for InnerRingTrans node:  [from TransInterp.value_changed to translation ] -->
<Transform DEF='InnerRingTrans'>
<!-- ROUTE information for InnerRing node:  [from InnerRingInterp.value_changed to set_scale ] -->
<Transform DEF='InnerRingscale='.01 .01 .01'>
<Shape>
<Sphere/>
<Appearance>
<Material diffuseColor='.9333 .9333 0shininess='1'/>
</Appearance>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for MiddleRingTrans node:  [from TransInterp.value_changed to translation ] -->
<Transform DEF='MiddleRingTrans'>
<!-- ROUTE information for MiddleRing node:  [from MiddleRingInterp.value_changed to set_scale ] -->
<Transform DEF='MiddleRingscale='.01 .01 .01'>
<Shape>
<Sphere/>
<Appearance>
<Material diffuseColor='1 .2 0shininess='1transparency='.5'/>
</Appearance>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for OuterRingTrans node:  [from TransInterp.value_changed to translation ] -->
<Transform DEF='OuterRingTrans'>
<!-- ROUTE information for OuterRing node:  [from OuterRingInterp.value_changed to set_scale ] -->
<Transform DEF='OuterRingscale='.01 .01 .01'>
<Shape>
<Sphere/>
<Appearance>
<Material diffuseColor='.8 .8 .8shininess='.2transparency='.8'/>
</Appearance>
</Shape>
</Transform>
</Transform>
<Sound maxBack='50000maxFront='50000'>
<!-- ROUTE information for Explode node:  [from ExplosionClock.startTime to startTime ] -->
<AudioClip DEF='Explodedescription='Explode!'
  url=' "../../Scenarios/UssColeTerroristAttack/EXP03.wav" "EXP03.wav" "https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/EXP03.wav" '/>
</Sound>
</Group>
<!-- ROUTE information for ExplosionClock node:  [from startTime to OuterClock.startTime ] [from fraction_changed to InnerRingInterp.set_fraction ] [from fraction_changed to MiddleRingInterp.set_fraction ] [from startTime to Explode.startTime ] [from fraction_changed to TransInterp.set_fraction ] -->
<TimeSensor DEF='ExplosionClockcycleInterval='3'>
<IS>
<connect nodeField='startTimeprotoField='startExplosion'/>
</IS>
</TimeSensor>
<!-- ROUTE information for OuterClock node:  [from ExplosionClock.startTime to startTime ] [from fraction_changed to OuterRingInterp.set_fraction ] -->
<TimeSensor DEF='OuterClockcycleInterval='10'/>
<!-- The explosion rings are based on the effects of approximately 1/3 ton of TNT. -->
<!-- ROUTE information for InnerRingInterp node:  [from ExplosionClock.fraction_changed to set_fraction ] [from value_changed to InnerRing.set_scale ] -->
<PositionInterpolator DEF='InnerRingInterpkey='0 0.1 1keyValue='0.01 0.01 0.01 9.975 9.975 9.975 0.01 0.01 0.01'/>
<!-- ROUTE information for MiddleRingInterp node:  [from ExplosionClock.fraction_changed to set_fraction ] [from value_changed to MiddleRing.set_scale ] -->
<PositionInterpolator DEF='MiddleRingInterpkey='0 0.1 1keyValue='0.01 0.01 0.01 12.635 12.635 12.635 0.01 0.01 0.01'/>
<!-- ROUTE information for OuterRingInterp node:  [from OuterClock.fraction_changed to set_fraction ] [from value_changed to OuterRing.set_scale ] -->
<PositionInterpolator DEF='OuterRingInterpkey='0 0.2 1keyValue='0.01 0.01 0.01 13.965 13.965 13.965 0.01 0.01 0.01'/>
<!-- ROUTE information for TransInterp node:  [from ExplosionClock.fraction_changed to set_fraction ] [from value_changed to InnerRingTrans.translation ] [from value_changed to MiddleRingTrans.translation ] [from value_changed to OuterRingTrans.translation ] -->
<PositionInterpolator DEF='TransInterpkey='0 1keyValue='0 0 0 0 4 1'/>
</Group>
<ROUTE fromNode='ExplosionClockfromField='startTimetoNode='OuterClocktoField='startTime'/>
<ROUTE fromNode='ExplosionClockfromField='fraction_changedtoNode='InnerRingInterptoField='set_fraction'/>
<ROUTE fromNode='ExplosionClockfromField='fraction_changedtoNode='MiddleRingInterptoField='set_fraction'/>
<ROUTE fromNode='OuterClockfromField='fraction_changedtoNode='OuterRingInterptoField='set_fraction'/>
<ROUTE fromNode='InnerRingInterpfromField='value_changedtoNode='InnerRingtoField='set_scale'/>
<ROUTE fromNode='MiddleRingInterpfromField='value_changedtoNode='MiddleRingtoField='set_scale'/>
<ROUTE fromNode='OuterRingInterpfromField='value_changedtoNode='OuterRingtoField='set_scale'/>
<ROUTE fromNode='ExplosionClockfromField='startTimetoNode='ExplodetoField='startTime'/>
<ROUTE fromNode='ExplosionClockfromField='fraction_changedtoNode='TransInterptoField='set_fraction'/>
<ROUTE fromNode='TransInterpfromField='value_changedtoNode='InnerRingTranstoField='translation'/>
<ROUTE fromNode='TransInterpfromField='value_changedtoNode='MiddleRingTranstoField='translation'/>
<ROUTE fromNode='TransInterpfromField='value_changedtoNode='OuterRingTranstoField='translation'/>
</ProtoBody>
</ProtoDeclare>
<NavigationInfo speed='10type='"FLY" "EXAMINE" "ANY"visibilityLimit='7000'/>
<Background groundAngle='1.309groundColor='0.2 0.2 0.8 .2 .2 1.0skyAngle='1.309 1.571skyColor='0.0 0.2 0.7 0.0 0.5 1.0 1.0 1.0 1.0'/>
<Viewpoint description='Watch the Explosionposition='0 0 12'/>
<Anchor description='Example useparameter='"target=_blank"'
  url=' "PhysicsBasedExplosionExample.x3d" "https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionExample.x3d" "PhysicsBasedExplosionExample.wrl" "https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionExample.wrl" '>
<Shape>
<Appearance>
<Material diffuseColor='0.8 0.4 0'/>
</Appearance>
<Text string='"PhysicsBasedExplosionPrototype.x3d" "is a Prototype declaration file." "" "For an example scene using the node" "click this text and view" "PhysicsBasedExplosionExample"'>
<FontStyle justify='"MIDDLE" "MIDDLE"size='0.8'/>
</Text>
</Shape>
</Anchor>
</Scene>
</X3D>
<!--

Index for ProtoDeclare definition : TNTBasedExplosion

Index for DEF nodes : Explode, ExplosionClock, InnerRing, InnerRingInterp, InnerRingTrans, MiddleRing, MiddleRingInterp, MiddleRingTrans, OuterClock, OuterRing, OuterRingInterp, OuterRingTrans, TransInterp

Index for Viewpoint image : Viewpoint_1
-->

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