<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://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 =' https://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='Figure09_5FourStackingBlocks.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='20 October 2019'/>
<meta name='descriptioncontent='Four stacking blocks, select and drag to see each of them.'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09SensingViewer/Figure09_5FourStackingBlocks.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='Figure09_5FourStackingBlocks.x3d'/>
<Viewpoint description='Hello Cubes.position='0 0 15'/>
<!-- Dragging Orderly Cubes. Superfluous Group nodes removed. -->
<!-- ROUTE information for BLOCK_1_TRANSFORM node:  [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>
<!-- ROUTE information for BLOCK_1_SENSOR node:  [from translation_changed to BLOCK_1_TRANSFORM.set_translation ] -->
<PlaneSensor DEF='BLOCK_1_SENSORdescription='Click and drag to move boxmaxPosition='3 3minPosition='-3 -3'/>
</Transform>
<!-- ROUTE information for BLOCK_2_TRANSFORM node:  [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>
<!-- ROUTE information for BLOCK_2_SENSOR node:  [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'/>
</Transform>
<!-- ROUTE information for BLOCK_3_TRANSFORM node:  [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>
<!-- ROUTE information for BLOCK_3_SENSOR node:  [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'/>
</Transform>
<!-- ROUTE information for BLOCK_4_TRANSFORM node:  [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>
<!-- ROUTE information for BLOCK_4_SENSOR node:  [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'/>
</Transform>
<!-- 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'/>
<ROUTE fromNode='BLOCK_2_SENSORfromField='translation_changedtoNode='BLOCK_2_TRANSFORMtoField='set_translation'/>
<ROUTE fromNode='BLOCK_3_SENSORfromField='translation_changedtoNode='BLOCK_3_TRANSFORMtoField='set_translation'/>
<ROUTE fromNode='BLOCK_4_SENSORfromField='translation_changedtoNode='BLOCK_4_TRANSFORMtoField='set_translation'/>
</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

Index for Viewpoint image : Viewpoint_1
-->

<!-- Online at https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09SensingViewer/Figure09_5FourStackingBlocksIndex.html -->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
-->

<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints. -->