<?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='SharkLucyLocale.x3d' name='title'/>
    <meta content='Lucy 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/SharkLucyLocale.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 -8.0 -1.0'>
      <Inline url='"SharkLucy.wrl"&#10;"http://www.web3d.org/x3d/content/examples/Basic/KelpForestExhibit/SharkLucy.wrl"&#10;"SharkLucy.x3d"&#10;"http://www.web3d.org/x3d/content/examples/Basic/KelpForestExhibit/SharkLucy.x3d"'/>
      <Group>
        <TimeSensor DEF='SHARK1_CLOCK' cycleInterval='220.0' loop='true'/>
        <PositionInterpolator DEF='SHARK1_POSITION' key=' 0.0 0.048 0.112 0.155 0.184 0.263 0.3 0.342 0.375 0.404 0.457 0.497 0.57 0.65 0.702 0.796 0.888 0.938 1.0' keyValue='0.0 -7.0 -1.0, -1.75 -7.0 -0.5, -4.0 -7.0 0.5, -5.0 -6.5 1.5, -5.5 -6.25 0.75, -5.25 -5.5 -2.25, -4.25 -5.0 -3.25, -2.75 -4.5 -3.75, -1.5 -4.5 -4.0, -0.5 -4.25 -4.5, 1.5 -3.75 -4.75, 3.0 -3.75 -4.5, 5.75 -4.5 -4.5, 8.75 -4.5 -4.0, 9.25 -4.5 -2.25, 7.5 -5.5 0.0, 4.0 -6.5 -0.25, 2.25 -7.0 -0.25, 0.0 -7.0 -1.0, '/>
        <OrientationInterpolator DEF='SHARK1_ORIENTATION' key=' 0.0 0.048 0.112 0.155 0.184 0.263 0.3 0.342 0.375 0.404 0.457 0.497 0.57 0.65 0.702 0.796 0.888 0.938 1.0' keyValue='0.0 1.0 0.0  3.4208, 0.0 1.0 0.0  3.5605, 0.1504 0.986 0.0717  4.0208, 0.1095 0.9918 -0.0658  2.0667, -0.1207 0.9836 0.134  1.4825, -0.1565 0.9125 0.3779  0.8522, -0.1099 0.7118 0.6937  0.4379, 0.0 1.0 0.0  0.192, -0.0956 0.8656 0.4916  0.4418, -0.0606 0.4959 0.8663  0.2802, 0.0 1.0 0.0  6.161, 0.0 0.0 -1.0  0.2618, 0.0 1.0 0.0  6.0388, 0.0 1.0 0.0  5.236, -0.1388 0.9878 -0.0707  4.0742, -0.1392 0.9903 0.0  3.1416, -0.1305 0.9911 0.0265  3.0, 0.0 1.0 0.0  2.827, 0.0 1.0 0.0  3.4208, '/>
      </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='SHARK1_CLOCK'/>
    <ROUTE fromField='fraction_changed' fromNode='SHARK1_CLOCK' toField='set_fraction' toNode='SHARK1_POSITION'/>
    <ROUTE fromField='fraction_changed' fromNode='SHARK1_CLOCK' toField='set_fraction' toNode='SHARK1_ORIENTATION'/>
    <ROUTE fromField='value_changed' fromNode='SHARK1_POSITION' toField='set_translation' toNode='_0'/>
    <ROUTE fromField='value_changed' fromNode='SHARK1_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>
