<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "http://www.web3d.org/TaskGroups/x3d/translation/x3d-compact.dtd"
                     "/www.web3d.org/TaskGroups/x3d/translation/x3d-compact.dtd">
<X3D>
<head>
<meta name='filename' content='SharkLeftyLocale.x3d'/>
<meta name='description' content='Lefty Shark with animation to traverse the tank'/>
<meta name='author' content='Tim McLean'/>
<meta name='translator' content='Don Brutzman'/>
<meta name='created' content='June 1998'/>
<meta name='revised' content='20 December 2002'/>
<meta name='reference' content='http://web.nps.navy.mil/~brutzman/kelp'/>
<meta name='url' content='http://www.web3d.org/TaskGroups/x3d/translation/examples/KelpForestExhibit/SharkLeftyLocale.x3d'/>
<meta name='generator' content='X3D-Edit, http://www.web3d.org/TaskGroups/x3d/translation/README.X3D-Edit.html'/>
</head>
<!--

Index for DEFs_0, _4, SHARK2_CLOCK, SHARK2_ORIENTATION, SHARK2_POSITION, sharkSwimmingInTankTrigger_5.
-->
<Scene>
<Transform DEF='_0' translation='0.0 -5.5 -1.0'>
<Inline url='"SharkLefty.wrl" "http://www.web3d.org/TaskGroups/x3d/translation/examples/KelpForestExhibit/SharkLefty.wrl" "SharkLefty.x3d" "http://www.web3d.org/TaskGroups/x3d/translation/examples/KelpForestExhibit/SharkLefty.x3d"'/>
<Group>
<TimeSensor DEF='SHARK2_CLOCK' cycleInterval='110.0' loop='true'/>
<PositionInterpolator DEF='SHARK2_POSITION' key='0.0 0.152 0.194 0.224 0.288 0.35 0.427 0.549 0.632 0.7 0.813 1.0' keyValue='0.0 -4.25 -1.0, 3.75 -4.5 -0.75, 4.75 -4.5 -1.0, 4.75 -4.5 -2.0, 3.25 -4.0 -2.5, 1.75 -4.0 -2.75, 0.0 -4.0 -3.25, -3.0 -3.5 -4.0, -5.0 -4.0 -2.5, -5.75 -4.5 0.0, -4.5 -4.5 0.25, 0.0 -4.25 -1.0,'/>
<OrientationInterpolator DEF='SHARK2_ORIENTATION' key='0.0 0.152 0.194 0.224 0.288 0.35 0.427 0.549 0.632 0.7 0.813 1.0' keyValue='0.0 1.0 0.0 6.2134, 0.0 1.0 0.0 0.244, 0.0 1.0 0.0 1.57, 0.1564 0.9974 -0.0262 2.8141, 0.0 1.0 0.0 2.967, 0.0 1.0 0.0 2.7227, 0.0872 0.9961 -0.0107 2.8982, -0.1218 0.9917 -0.0407 3.7824, -0.1469 0.9832 -0.1087 4.3995, 0.0 1.0 0.0 6.0912, 0.0 1.0 0.0 0.2618, 0.0 1.0 0.0 6.2134,'/>
</Group>
</Transform>
<TimeSensor DEF='_4' loop='true'/>
<Script DEF='sharkSwimmingInTankTrigger_5'>
<field name='triggerIn' type='SFTime' accessType='inputOnly'/>
<field name='startTime' type='SFTime' accessType='outputOnly'/>
<field name='firstTime' type='SFBool' accessType='outputOnly'/>
<![CDATA[
javascript:

function triggerIn (value, time) 
{
	startTime = value;
	firstTime = FALSE;
}]]>
</Script>
<ROUTE fromNode='sharkSwimmingInTankTrigger_5' fromField='startTime' toNode='SHARK2_CLOCK' toField='set_startTime'/>
<ROUTE fromNode='SHARK2_CLOCK' fromField='fraction_changed' toNode='SHARK2_POSITION' toField='set_fraction'/>
<ROUTE fromNode='SHARK2_CLOCK' fromField='fraction_changed' toNode='SHARK2_ORIENTATION' toField='set_fraction'/>
<ROUTE fromNode='SHARK2_POSITION' fromField='value_changed' toNode='_0' toField='set_translation'/>
<ROUTE fromNode='SHARK2_ORIENTATION' fromField='value_changed' toNode='_0' toField='set_rotation'/>
<ROUTE fromNode='sharkSwimmingInTankTrigger_5' fromField='firstTime' toNode='_4' toField='set_enabled'/>
<ROUTE fromNode='_4' fromField='time' toNode='sharkSwimmingInTankTrigger_5' toField='triggerIn'/>
</Scene>
</X3D>
<!--

Index for DEFs_0, _4, SHARK2_CLOCK, SHARK2_ORIENTATION, SHARK2_POSITION, sharkSwimmingInTankTrigger_5.
-->
<!-- Tag color codes: <NodeType DEF='NodeName' attribute='value'/> -->