<?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='ProximitySensorNoOverlap.x3d'/>
<meta name='descriptioncontent='Example ProximitySensor regions'/>
<meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
<meta name='createdcontent='15 July 2006'/>
<meta name='modifiedcontent='10 October 2015'/>
<meta name='referencecontent='ProximitySensorMultiple.x3d'/>
<meta name='referencecontent='ProximitySensorOverlap.x3d'/>
<meta name='referencecontent='ProximitySensorSingle.x3d'/>
<meta name='referencecontent=' http://X3dGraphics.com '/>
<meta name='referencecontent=' http://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='rightscontent='Copyright Don Brutzman and Leonard Daly 2007'/>
<meta name='subjectcontent=' X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com '/>
<meta name='identifiercontent=' http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/ProximitySensorNoOverlap.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

Index for ExternProtoDeclare definition : WhereAmI

Index for DEF nodes : BoxOutline, BoxSurface, HereIAm1, LocationReport, SensorGroup, SensorSize

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5
-->
<Scene>
<ExternProtoDeclare name='WhereAmI'
  url=' "../Chapter14Prototypes/WhereAmIPrototype.x3d#WhereAmI" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmIPrototype.x3d#WhereAmI" "../Chapter14Prototypes/WhereAmIPrototype.wrl#WhereAmI" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmI.wrl#WhereAmI" '/>

<ProtoInstance name='WhereAmI'/>
<Viewpoint description='Book Viewpointorientation='0 1 0 -0.06position='0.05 0 8.71'/>
<NavigationInfo avatarSize='0.05 1.6 0.75type='"WALK" "ANY"'/>
<Background skyColor='1 1 1'/>
<Collision enabled='false'>
<Transform DEF='SensorGroup'>
<Viewpoint description='Inside proximity box 1orientation='0 1 0 -0.78position='0 0 0.5'/>
<!-- ROUTE information for HereIAm1 node:  [from position_changed to LocationReport.position ] [from orientation_changed to LocationReport.orientation ] -->
<ProximitySensor DEF='HereIAm1size='2 2 2'/>
<Transform DEF='SensorSize'>
<Shape DEF='BoxOutline'>
<Appearance>
<Material emissiveColor='0.8 0.8 0.8'/>
</Appearance>
<IndexedLineSet coordIndex='0 1 2 3 0 -1 4 5 6 7 4 -1 0 4 -1 1 5 -1 2 6 -1 3 7 -1'>
<Coordinate point='1 1 1 1 1 -1 1 -1 -1 1 -1 1 -1 1 1 -1 1 -1 -1 -1 -1 -1 -1 1'/>
</IndexedLineSet>
</Shape>
<Shape DEF='BoxSurface'>
<Appearance>
<Material diffuseColor='1 .5 0transparency='.8'/>
</Appearance>
<Box/>
</Shape>
</Transform>
</Transform>
</Collision>
<Collision enabled='false'>
<Transform rotation='.707 .707 0 1translation='3 1 2'>
<Viewpoint description='Inside proximity box 2orientation='0 1 0 -0.78position='0 0 0.5'/>
<ProximitySensor USE='HereIAm1'/>
<Transform USE='SensorSize'/>
</Transform>
</Collision>
<Collision enabled='false'>
<Transform translation='-1 .5 -2.1'>
<Viewpoint description='Inside proximity box 3orientation='0 1 0 -0.78position='0 0 0.5'/>
<ProximitySensor USE='HereIAm1'/>
<Transform USE='SensorSize'/>
</Transform>
</Collision>
<Collision enabled='false'>
<Transform translation='-2.5 -1 1.5'>
<Viewpoint description='Inside proximity box 4orientation='0 1 0 -0.78position='0 0 0.5'/>
<ProximitySensor USE='HereIAm1'/>
<Transform USE='SensorSize'/>
</Transform>
</Collision>
<!-- ROUTE information for LocationReport node:  [from HereIAm1.position_changed to position ] [from HereIAm1.orientation_changed to orientation ] -->
<Script DEF='LocationReport'
  url=' "ProximitySensorSingleScriptLocationReport.js" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/ProximitySensorSingleScriptLocationReport.js" '>
<field name='positiontype='SFVec3faccessType='inputOnly'/>
<field name='orientationtype='SFRotationaccessType='inputOnly'/>
</Script>
<ROUTE fromNode='HereIAm1fromField='position_changedtoNode='LocationReporttoField='position'/>
<ROUTE fromNode='HereIAm1fromField='orientation_changedtoNode='LocationReporttoField='orientation'/>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definition : WhereAmI

Index for DEF nodes : BoxOutline, BoxSurface, HereIAm1, LocationReport, SensorGroup, SensorSize

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5
-->

<!-- 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)
    <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->

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