<?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 name='titlecontent='Figure09.3ConePlaneSensor.x3d'/>
<meta name='creatorcontent='Figure 9.3, 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/09fig03.htm '/>
<meta name='transcribercontent='Don Brutzman'/>
<meta name='createdcontent='9 August 2000'/>
<meta name='modifiedcontent='25 March 2012'/>
<meta name='descriptioncontent='A Cone that translates in the vertical XY plane when the viewer drags it. Also see Figure 9.4 for comparison.'/>
<meta name='referencecontent='Figure09.4ConePlaneSensorConstrained.x3d'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09-SensingViewer/Figure09.3ConePlaneSensor.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!--

Index for DEF nodes : CUBE_TRANSFORM, MyPlaneSensor
-->
<Scene>
<!-- Rotating Cube -->
<Group>
<!-- CUBE_TRANSFORM ROUTE:  [from MyPlaneSensor.translation_changed to set_translation ] -->
<Transform DEF='CUBE_TRANSFORM'>
<Shape>
<Cone/>
<Appearance>
<Material diffuseColor='.5 .5 .5emissiveColor='0 0 .5'/>
</Appearance>
</Shape>
</Transform>
<!-- MyPlaneSensor ROUTE:  [from translation_changed to CUBE_TRANSFORM.set_translation ] -->
<PlaneSensor DEF='MyPlaneSensordescription='Dragged cone stays in vertical XY plane'/>
</Group>
<!-- Note that we are connecting a translation (Vec3F) output to a translation (Vec3F) input in this ROUTE. -->
<ROUTE fromNode='MyPlaneSensorfromField='translation_changedtoNode='CUBE_TRANSFORMtoField='set_translation'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : CUBE_TRANSFORM, MyPlaneSensor
-->

<!-- 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 -->