<?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 name='titlecontent='Figure09.5FourStackingBlocksWithAxes.x3d'/>
<meta name='creatorcontent='Figure 9.5, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/>
<meta name='referencecontent=' http://www.wiley.com/legacy/compbooks/vrml2sbk/ch09/09fig05.htm '/>
<meta name='transcribercontent='Don Brutzman'/>
<meta name='createdcontent='9 August 2000'/>
<meta name='modifiedcontent='9 March 2014'/>
<meta name='descriptioncontent='Four stacking blocks, select and drag to see each of them. Coordinate axes are superimposed to show X3D/VRML directions.'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09-SensingViewer/Figure09.5FourStackingBlocksWithAxes.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<Viewpoint description='Hello Cubes.position='0 0 15'/>
<!-- Dragging Orderly Cubes. Superfluous Group nodes removed. -->
<!-- BLOCK_1_TRANSFORM ROUTE:  [from BLOCK_1_SENSOR.translation_changed to set_translation ] -->
<Transform DEF='BLOCK_1_TRANSFORM'>
<Shape>
<Box/>
<Appearance>
<Material diffuseColor='.5 .5 .5emissiveColor='.5 0 0'/>
</Appearance>
</Shape>
<!-- BLOCK_1_SENSOR ROUTE:  [from translation_changed to BLOCK_1_TRANSFORM.set_translation ] -->
<PlaneSensor DEF='BLOCK_1_SENSORdescription='Click and drag to move boxmaxPosition='3 3minPosition='-3 -3'/>
<!-- Note that we are connecting a translation (Vec3F) output to a translation (Vec3F) input in these ROUTEs. -->
<ROUTE fromNode='BLOCK_1_SENSORfromField='translation_changedtoNode='BLOCK_1_TRANSFORMtoField='set_translation'/>
</Transform>
<!-- BLOCK_2_TRANSFORM ROUTE:  [from BLOCK_2_SENSOR.translation_changed to set_translation ] -->
<Transform DEF='BLOCK_2_TRANSFORM'>
<Shape>
<Box/>
<Appearance>
<Material diffuseColor='.5 .5 .5emissiveColor='0 .5 0'/>
</Appearance>
</Shape>
<!-- BLOCK_2_SENSOR ROUTE:  [from translation_changed to BLOCK_2_TRANSFORM.set_translation ] -->
<PlaneSensor DEF='BLOCK_2_SENSORdescription='Click and drag to move boxmaxPosition='3 3minPosition='-3 -3offset='2.5 0 0'/>
<ROUTE fromNode='BLOCK_2_SENSORfromField='translation_changedtoNode='BLOCK_2_TRANSFORMtoField='set_translation'/>
</Transform>
<!-- BLOCK_3_TRANSFORM ROUTE:  [from BLOCK_3_SENSOR.translation_changed to set_translation ] -->
<Transform DEF='BLOCK_3_TRANSFORM'>
<Shape>
<Box/>
<Appearance>
<Material diffuseColor='.5 .5 .5emissiveColor='0 0 .5'/>
</Appearance>
</Shape>
<!-- BLOCK_3_SENSOR ROUTE:  [from translation_changed to BLOCK_3_TRANSFORM.set_translation ] -->
<PlaneSensor DEF='BLOCK_3_SENSORdescription='Click and drag to move boxmaxPosition='3 3minPosition='-3 -3offset='-1.5 -2 0'/>
<ROUTE fromNode='BLOCK_3_SENSORfromField='translation_changedtoNode='BLOCK_3_TRANSFORMtoField='set_translation'/>
</Transform>
<!-- BLOCK_4_TRANSFORM ROUTE:  [from BLOCK_4_SENSOR.translation_changed to set_translation ] -->
<Transform DEF='BLOCK_4_TRANSFORM'>
<Shape>
<Box/>
<Appearance>
<Material diffuseColor='.5 .5 .5emissiveColor='.5 .5 0'/>
</Appearance>
</Shape>
<!-- BLOCK_4_SENSOR ROUTE:  [from translation_changed to BLOCK_4_TRANSFORM.set_translation ] -->
<PlaneSensor DEF='BLOCK_4_SENSORdescription='Click and drag to move boxmaxPosition='3 3minPosition='-3 -3offset='.75 4 0'/>
<ROUTE fromNode='BLOCK_4_SENSORfromField='translation_changedtoNode='BLOCK_4_TRANSFORMtoField='set_translation'/>
</Transform>
<!-- Adding this Inline reference to another scene superimposes X3D/VRML coordinate system axes. -->
<Switch DEF='HiderwhichChoice='0'> </Switch>
</Scene>
</X3D>
<!--

Index for DEF nodes : BLOCK_1_SENSOR, BLOCK_1_TRANSFORM, BLOCK_2_SENSOR, BLOCK_2_TRANSFORM, BLOCK_3_SENSOR, BLOCK_3_TRANSFORM, BLOCK_4_SENSOR, BLOCK_4_TRANSFORM, CoordinateAxes, Hider

Index for Viewpoint image : Viewpoint_1
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/> -->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->