<head>
</head>
<!--
-->
<Scene>
<WorldInfo title='IndexedLineSet.x3d'/>
<Background skyColor='1 1 1' transparency='0'/>
<Viewpoint description='Book View' orientation='0.939 0.335 0.075 -0.57' position='-0.89 1.91 9.26'/>
<Transform bboxCenter='0 0 0' bboxSize='-1 -1 -1'>
<Shape bboxCenter='0 0 0' bboxSize='-1 -1 -1'>
<Appearance>
<Material emissiveColor='0 0 1'/>
</Appearance>
<!-- Note that index=0 for the first and last points are the same (coincident) in order to close the loop. -->
<!-- Compare to no indexing scheme in LineSet.x3d example, which creates the exact same path. -->
<IndexedLineSet DEF='ILS' coordIndex='0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 0 -1'>
<Coordinate DEF='TurnPoints' point='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'/>
</IndexedLineSet>
</Shape>
</Transform>
<!-- ROUTE information for _0 node:
[from SHARK1_POSITION.value_changed to set_translation
]
[from SHARK1_ORIENTATION.value_changed to set_rotation
]
-->
<Transform DEF='_0' translation='0.0 -8.0 -1.0' bboxCenter='0 0 0' bboxSize='-1 -1 -1'>
</Transform>
<!-- ROUTE information for _4 node:
[from sharkSwimmingInTankTrigger_5.firstTime to set_enabled
]
[from time to sharkSwimmingInTankTrigger_5.triggerIn
]
-->
<TimeSensor DEF='_4' loop='true'/>
<!-- ROUTE information for sharkSwimmingInTankTrigger_5 node:
[from _4.time to triggerIn
]
[from startTime to SHARK1_CLOCK.set_startTime
]
[from firstTime to _4.set_enabled
]
-->
<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[
ecmascript:
function triggerIn (value, time)
{
startTime = value;
firstTime = false;
}
]]>
</Scene>