<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN"   "http://www.web3d.org/specifications/x3d-3.1.dtd">
<X3D profile='Immersiveversion='3.1xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.1.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='27 December 2007'/>
<meta name='referencecontent=' http://X3dGraphics.com '/>
<meta name='referencecontent=' http://www.web3d.org/x3d/content/examples/help.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/Chapter12-EnvironmentSensorSound/ProximitySensor.x3d '/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
</head>
<!--

Index for DEF nodes: BottomText, BottomTextLine, CnvText, HereIAm, HUD, HudContents, PushBack, Text_app, TextStyle, TopText, TopTextLine
-->
<Scene>
<!-- HereIAm ROUTEs:  [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='1000 1000 1000'/>
<!-- HUD ROUTEs:  [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>
<!-- TopTextLine ROUTE:  [from CnvText.positionText to string ] -->
<Text DEF='TopTextLinestring='"Position 0.00 0.00 10.00"solid='true'>
<FontStyle DEF='TextStylefamily='"SANS SERIF"size='.1'/>
</Text>
</Shape>
</Transform>
<Transform DEF='BottomTexttranslation='0 -.4 0'>
<Shape>
<Appearance USE='Text_app'/>
<!-- BottomTextLine ROUTE:  [from CnvText.orientationText to string ] -->
<Text DEF='BottomTextLinestring='"Orientation: 0.000 1.000 0.000 0.00"solid='true'>
<FontStyle USE='TextStyle'/>
</Text>
</Shape>
</Transform>
</Transform>
</Transform>
</Transform>
<!-- CnvText ROUTEs:  [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=' "convertText.js" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter12-EnvironmentSensorSound/convertText.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'/>
<Inline
  url=' "../KelpForestExhibit/KelpForestMain.x3d" "../KelpForestExhibit/KelpForestMain.wrl" "http://X3dGraphics.com/examples/X3dForWebAuthors/KelpForestExhibit/KelpForestMain.x3d" "http://X3dGraphics.com/examples/X3dForWebAuthors/KelpForestExhibit/KelpForestMain.wrl" '/>
</Scene>
</X3D>
<!--

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

<!-- Tag color codes: <Node DEF='idName' attribute='value'/> -->