<
NavigationInfo type='
"EXAMINE" "ANY"'
transitionType='
"ANIMATE"'/>
<!-- Animation clock -->
<!--
CLOCK ROUTE:
[
from fraction_changed to CUBEPATH.set_fraction
]
-->
<
TimeSensor DEF='
CLOCK'
cycleInterval='
4'
loop='
true'/>
<!-- Key locations in the animation path are captured in the PositionInterpolator. -->
<!-- Intermediate position values are interpolated between key locations. -->
<!--
CUBEPATH ROUTEs:
[
from CLOCK.fraction_changed to set_fraction
]
[
from value_changed to BOUNCINGBOXTRANSFORM.set_translation
]
-->
<
PositionInterpolator DEF='
CUBEPATH'
key='
0.00 0.11 0.17 0.22 0.33 0.44 0.50 0.55 0.66 0.77 0.83 0.88 0.99'
keyValue='
0.0 0.0 0.0 1.0 1.96 1.0 1.5 2.21 1.5 2.0 1.96 2.0 3.0 0.0 3.0 2.0 1.96 3.0 1.5 2.21 3.0 1.0 1.96 3.0 0.0 0.0 3.0 0.0 1.96 2.0 0.0 2.21 1.5 0.0 1.96 1.0 0.0 0.0 0.0'/>
<
ROUTE fromNode='
CLOCK'
fromField='
fraction_changed'
toNode='
CUBEPATH'
toField='
set_fraction'/>
<!-- Moving box is rotated slightly to better show its shape. -->
<!--
BOUNCINGBOXTRANSFORM ROUTE:
[
from CUBEPATH.value_changed to set_translation
]
-->
<
Transform DEF='
BOUNCINGBOXTRANSFORM'
rotation='
0 1 0 .78'>
<
Shape>
<
Appearance>
<Material diffuseColor='.8 .8 .2'/>
</
Appearance>
<
Box size='
1 1.5 1'/>
</
Shape>
</
Transform>
<
ROUTE fromNode='
CUBEPATH'
fromField='
value_changed'
toNode='
BOUNCINGBOXTRANSFORM'
toField='
set_translation'/>