<?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_4ConePlaneSensorConstrained.x3d'/>
<meta name='creatorcontent='Figure 9.4, 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/09fig04.htm '/>
<meta name='transcribercontent='Don Brutzman'/>
<meta name='createdcontent='9 August 2000'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='descriptioncontent='A cone that translates within a limited range of the XZ plane when the viewer drags it. Also see Figure 9.3 for comparison.'/>
<meta name='referencecontent='Figure09_3ConePlaneSensor.x3d'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09SensingViewer/Figure09_4ConePlaneSensorConstrained.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>
<!-- Dragging a Reluctant Cone -->
<WorldInfo title='Figure09_4ConePlaneSensorConstrained.x3d'/>
<Group>
<Transform rotation='1 0 0 -1.57'>
<!-- ROUTE information for CUBE_TRANSFORM node:  [from MyPlaneSensor.translation_changed to set_translation ] -->
<Transform DEF='CUBE_TRANSFORM'>
<Shape>
<Cone/>
<Appearance>
<Material diffuseColor='.5 .5 .5emissiveColor='0 .5 0'/>
</Appearance>
</Shape>
</Transform>
<!-- ROUTE information for MyPlaneSensor node:  [from translation_changed to CUBE_TRANSFORM.set_translation ] -->
<PlaneSensor DEF='MyPlaneSensordescription='Drag cone stays in XZ planemaxPosition='2 2minPosition='-2 -2'/>
</Transform>
</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'/>
(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. -->