<?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='Interactive' 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='Figure09.6SphereSensor.x3d' name='title'/>
    <meta content='Figure 9.6, 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/ch09/09fig06.htm' name='reference'/>
    <meta content='Don Brutzman' name='transcriber'/>
    <meta content='12 August 2000' name='created'/>
    <meta content='1 February 2014' name='modified'/>
    <meta content='Two shapes that rotate when the viewer drags them, with coordinate axes superimposed to show X3D/VRML directions.' name='description'/>
    <meta content='http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09-SensingViewer/Figure09.6SphereSensor.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>
    <!-- Click and drag to rotate shapes. Superfluous Group nodes removed. -->
    <Transform DEF='FIRST_TRANSFORM' translation='-2 0 0'>
      <Shape>
        <Box/>
        <Appearance DEF='FIRST_APPEARANCE'>
          <Material diffuseColor='.9 .5 .1' emissiveColor='.2 .1 .05'/>
        </Appearance>
      </Shape>
      <SphereSensor DEF='FIRST_SPHERESENSOR' description='click and drag to rotate'/>
    </Transform>
    <!-- Note that we are connecting a rotation output to a rotation input in each of these ROUTEs. -->
    <ROUTE fromField='rotation_changed' fromNode='FIRST_SPHERESENSOR' toField='set_rotation' toNode='FIRST_TRANSFORM'/>
    <Transform DEF='SECOND_TRANSFORM' translation='2 0 0'>
      <Shape>
        <Cone/>
        <Appearance USE='FIRST_APPEARANCE'/>
      </Shape>
      <SphereSensor DEF='SECOND_SPHERESENSOR' description='click and drag to rotate'/>
    </Transform>
    <ROUTE fromField='rotation_changed' fromNode='SECOND_SPHERESENSOR' toField='set_rotation' toNode='SECOND_TRANSFORM'/>
  </Scene>
</X3D>