<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.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='1 June 1998' name='created'/>
    <meta content='20 October 2019' name='modified'/>
    <meta content='http://faculty.nps.edu/brutzman/kelp' name='reference'/>
    <meta content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/SharkLeftyLocale.x3d' name='identifier'/>
    <meta content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit' name='generator'/>
    <meta content='../license.html' name='license'/>
  </head>
  <Scene>
    <WorldInfo title='SharkLeftyLocale.x3d'/>
    <Transform DEF='_0' translation='0.0 -5.5 -1.0'>
      <Inline url='"SharkLefty.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/SharkLefty.x3d" "SharkLefty.wrl" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/SharkLefty.wrl"'/>
      <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>