<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<meta name='titlecontent='ProximitySensor.x3d'/>
<meta name='descriptioncontent='Demonstrates use of a ProximitySensor in building a HUD'/>
<meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
<meta name='createdcontent='15 July 2006'/>
<meta name='modifiedcontent='10 January 2014'/>
<meta name='Imagecontent='ProximitySensorVisualization.png'/>
<meta name='referencecontent=' http://X3dGraphics.com '/>
<meta name='referencecontent=' http://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='rightscontent='Copyright 2006, Daly Realism and Don Brutzman'/>
<meta name='subjectcontent=' X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com '/>
<meta name='identifiercontent=' http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/ProximitySensor.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<!-- HUD = Heads-Up Display, which stays on screen in same relative location even while user navigates -->
<!-- TODO: authors should use X3D-Edit editing pane to try out the ProximitySensor Visualize capability -->
<!-- ROUTE information for HereIAm node:  [from orientation_changed to HUD.rotation ] [from position_changed to HUD.translation ] [from position_changed to CnvText.position ] [from orientation_changed to CnvText.orientation ] -->
<ProximitySensor DEF='HereIAmsize='100 100 100'/>
<Inline
  url=' "../KelpForestExhibit/KelpForestMain.x3d" "http://X3dGraphics.com/examples/X3dForWebAuthors/KelpForestExhibit/KelpForestMain.x3d" "../KelpForestExhibit/KelpForestMain.wrl" "http://X3dGraphics.com/examples/X3dForWebAuthors/KelpForestExhibit/KelpForestMain.wrl" '/>

<!-- ROUTE information for HUD node:  [from HereIAm.orientation_changed to rotation ] [from HereIAm.position_changed to translation ] -->
<Transform DEF='HUD'>
<Transform DEF='PushBacktranslation='-.8 1. -3'>
<Shape>
<Appearance>
<Material diffuseColor='1 1 0'/>
</Appearance>
<Box size='1.5 .4 .1'/>
</Shape>
<Transform DEF='HudContentstranslation='-.7 .3 .1'>
<Transform DEF='TopTexttranslation='0 -.2 0'>
<Shape>
<Appearance DEF='Text_app'>
<Material diffuseColor='0 0 0'/>
</Appearance>
<!-- ROUTE information for TopTextLine node:  [from CnvText.positionText to string ] -->
<Text DEF='TopTextLinestring='"Position 0.00 0.00 10.00"'>
<FontStyle DEF='TextStylefamily='"SANS" "SERIF"justify='"BEGIN" "BEGIN"size='0.1'/>
</Text>
</Shape>
</Transform>
<Transform DEF='BottomTexttranslation='0 -.4 0'>
<Shape>
<Appearance USE='Text_app'/>
<!-- ROUTE information for BottomTextLine node:  [from CnvText.orientationText to string ] -->
<Text DEF='BottomTextLinestring='"Orientation: 0.000 1.000 0.000 0.00"'>
<FontStyle USE='TextStyle'/>
</Text>
</Shape>
</Transform>
</Transform>
</Transform>
</Transform>
<!-- ROUTE information for CnvText node:  [from HereIAm.position_changed to position ] [from HereIAm.orientation_changed to orientation ] [from positionText to TopTextLine.string ] [from orientationText to BottomTextLine.string ] -->
<Script DEF='CnvText'
  url=' "ProximitySensorScriptConvertText.js" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/ProximitySensorScriptConvertText.js" '>
<field name='positiontype='SFVec3faccessType='inputOnly'/>
<field name='orientationtype='SFRotationaccessType='inputOnly'/>
<field name='positionTexttype='MFStringaccessType='outputOnly'/>
<field name='orientationTexttype='MFStringaccessType='outputOnly'/>
</Script>
<ROUTE fromNode='HereIAmfromField='orientation_changedtoNode='HUDtoField='rotation'/>
<ROUTE fromNode='HereIAmfromField='position_changedtoNode='HUDtoField='translation'/>
<ROUTE fromNode='HereIAmfromField='position_changedtoNode='CnvTexttoField='position'/>
<ROUTE fromNode='HereIAmfromField='orientation_changedtoNode='CnvTexttoField='orientation'/>
<ROUTE fromNode='CnvTextfromField='positionTexttoNode='TopTextLinetoField='string'/>
<ROUTE fromNode='CnvTextfromField='orientationTexttoNode='BottomTextLinetoField='string'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : BottomText, BottomTextLine, CnvText, HereIAm, HUD, HudContents, PushBack, Text_app, TextStyle, TopText, TopTextLine
-->

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

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