<?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 profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.0.xsd'>
  <head>
    <meta content='Figure08.3PositionInterpolatorWithAxes.x3d' name='title'/>
    <meta content='Figure 8.3, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland' name='creator'/>
    <meta content='http://www.wiley.com/legacy/compbooks/vrml2sbk/ch08/08fig03.htm' name='reference'/>
    <meta content='Don Brutzman' name='transcriber'/>
    <meta content='8 August 2000' name='created'/>
    <meta content='9 March 2014' name='modified'/>
    <meta content='Simple PositionInterpolator example. An animation that moves a coordinate system and the cube built within it along a bouncing path, with coordinate axes superimposed to show X3D/VRML directions' name='description'/>
    <meta content='PositionInterpolatorPathMapDiagram.png' name='reference'/>
    <meta content='http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter08-AnimatingPositionOrientationScale/Figure08.3PositionInterpolatorWithAxes.x3d' name='identifier'/>
    <meta content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit' name='generator'/>
    <meta content='../../license.html' name='license'/>
  </head>
  <Scene>
    <NavigationInfo/>
    <!-- Animation clock -->
    <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. -->
    <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 fromField='fraction_changed' fromNode='CLOCK' toField='set_fraction' toNode='CUBEPATH'/>
    <!-- Moving box is rotated slightly to better show its shape. -->
    <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 fromField='value_changed' fromNode='CUBEPATH' toField='set_translation' toNode='BOUNCINGBOXTRANSFORM'/>
    <!-- Adding this Inline reference to another scene superimposes X3D/VRML coordinate system axes. -->
    <Transform scale='4 4 4'>
      <Inline DEF='CoordinateAxes' url='"../../X3dForWebAuthors/Chapter03-Grouping/CoordinateAxes.x3d" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter03-Grouping/CoordinateAxes.x3d" "https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.x3d" "../../X3dForWebAuthors/Chapter03-Grouping/CoordinateAxes.wrl" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter03-Grouping/CoordinateAxes.wrl" "https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.wrl"'/>
    </Transform>
  </Scene>
</X3D>