<?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 version='3.0' profile='Immersive' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.0.xsd'>
  <head>
    <meta content='SharkLeftyLocale.x3d' name='title'/>
    <meta content='Lefty Shark with animation to traverse the tank' name='description'/>
    <meta content='Tim McLean' name='creator'/>
    <meta content='Don Brutzman' name='translator'/>
    <meta content='June 1998' name='created'/>
    <meta content='20 December 2002' name='modified'/>
    <meta content='http://web.nps.navy.mil/~brutzman/kelp' name='reference'/>
    <meta content='http://www.web3d.org/x3d/content/examples/Basic/KelpForestExhibit/SharkLeftyLocale.x3d' name='identifier'/>
    <meta content='X3D-Edit, http://www.web3d.org/x3d/content/README.X3D-Edit.html' name='generator'/>
    <meta name='license' content='../../license.html'/>
  </head>
  <Scene>
    <Transform DEF='_0' translation='0.0 -5.5 -1.0'>
      <Inline url='"SharkLefty.wrl"&#10;"http://www.web3d.org/x3d/content/examples/Basic/KelpForestExhibit/SharkLefty.wrl"&#10;"SharkLefty.x3d"&#10;"http://www.web3d.org/x3d/content/examples/Basic/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 accessType='inputOnly' name='triggerIn' type='SFTime'/>
      <field accessType='outputOnly' name='startTime' type='SFTime'/>
      <field accessType='outputOnly' name='firstTime' type='SFBool'/>
      <![CDATA[ecmascript:

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