<?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='Immersive'  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_3ConePlaneSensorWithAxes.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='4 September 2023'/>
<meta name='descriptioncontent='A Cone that translates in the vertical XY plane when the viewer drags it, with coordinate axes superimposed to show X3D/VRML directions. Also see Figure 9.4 for comparison.'/>
<meta name='referencecontent=' Figure09_4ConePlaneSensorConstrainedWithAxes.x3d '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09SensingViewer/Figure09_3ConePlaneSensorWithAxes.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: CoordinateAxes, CUBE_TRANSFORM, MyPlaneSensor
-->
<Scene>
<!-- Rotating Cube -->
<WorldInfo title='Figure09_3ConePlaneSensorWithAxes.x3d'/>
<Group>
<!-- 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 0 .5'/>
</Appearance>
</Shape>
</Transform>
<!-- ROUTE information for MyPlaneSensor node:  [from translation_changed to CUBE_TRANSFORM.set_translation ] -->
<PlaneSensor DEF='MyPlaneSensordescription='Drag cone stays in plane'/>
</Group>
<!-- Adding this Inline reference to another scene superimposes X3D/VRML coordinate system axes. -->
<Transform scale='3 3 3'> </Transform>
<Shape>
<Box size='20 20 0.1'/>
<Appearance>
<Material transparency='0.7'/>
</Appearance>
</Shape>
<!-- Note that we are connecting a translation (SFVec3F) output to a translation (SFVec3F) input in this ROUTE. -->
< ROUTE  fromNode=' MyPlaneSensor' fromField='translation_changed' toNode=' CUBE_TRANSFORM' toField='set_translation'/>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: CoordinateAxes, CUBE_TRANSFORM, MyPlaneSensor
-->

Event Graph ROUTE Table with 1 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

MyPlaneSensor
PlaneSensor
translation_changed
SFVec3f

ROUTE
event to
(1)
CUBE_TRANSFORM
Transform
set_translation
SFVec3f


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09SensingViewer/Figure09_3ConePlaneSensorWithAxesIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09SensingViewer/Figure09_3ConePlaneSensorWithAxes.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

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