<?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='ProximitySensorMultiple.x3d'/>
<meta name='descriptioncontent='Example multiple ProximitySensor non-overlapping regions'/>
<meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
<meta name='createdcontent='15 July 2006'/>
<meta name='modifiedcontent='8 October 2007'/>
<meta name='referencecontent=' http://X3dGraphics.com '/>
<meta name='referencecontent=' http://www.web3d.org/x3d/content/examples/help.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/Chapter12-EnvironmentSensorSound/ProximitySensorMultiple.x3d '/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
</head>
<!--

Index for DEF nodes: BoxOutline, BoxSurface, HereIAm1, HereIAm2, HereIAm3, HereIAm4, LocationReport, SensorSize
Index for Viewpoint image: Viewpoint_1
-->
<Scene>
<Viewpoint description='Book Viewpointorientation='0 1 0 -0.06position='0.05 0 8.71'/>
<Background skyColor='1 1 1'/>
<Collision enabled='false'>
<Transform>
<!-- HereIAm1 ROUTEs:  [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/>
</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'>
<!-- HereIAm2 ROUTEs:  [from position_changed to LocationReport.position ] [from orientation_changed to LocationReport.orientation ] -->
<ProximitySensor DEF='HereIAm2size='2 2 2'/>
<Transform USE='SensorSize'/>
</Transform>
</Collision>
<Collision enabled='false'>
<Transform translation='-1 .5 -.5'>
<!-- HereIAm3 ROUTEs:  [from position_changed to LocationReport.position ] [from orientation_changed to LocationReport.orientation ] -->
<ProximitySensor DEF='HereIAm3size='2 2 2'/>
<Transform USE='SensorSize'/>
</Transform>
</Collision>
<Collision enabled='false'>
<Transform translation='-2 -1 .5'>
<!-- HereIAm4 ROUTEs:  [from position_changed to LocationReport.position ] [from orientation_changed to LocationReport.orientation ] -->
<ProximitySensor DEF='HereIAm4size='2 2 2'/>
<Transform USE='SensorSize'/>
</Transform>
</Collision>
<!-- LocationReport ROUTEs:  [from HereIAm1.position_changed to position ] [from HereIAm2.position_changed to position ] [from HereIAm3.position_changed to position ] [from HereIAm4.position_changed to position ] [from HereIAm1.orientation_changed to orientation ] [from HereIAm2.orientation_changed to orientation ] [from HereIAm3.orientation_changed to orientation ] [from HereIAm4.orientation_changed to orientation ] -->
<Script DEF='LocationReport'
  url=' "locationReport.js" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter12-EnvironmentSensorSound/locationReport.js" '>
<field name='positiontype='SFVec3faccessType='inputOnly'/>
<field name='orientationtype='SFRotationaccessType='inputOnly'/>
</Script>
<ROUTE fromNode='HereIAm1fromField='position_changedtoNode='LocationReporttoField='position'/>
<ROUTE fromNode='HereIAm2fromField='position_changedtoNode='LocationReporttoField='position'/>
<ROUTE fromNode='HereIAm3fromField='position_changedtoNode='LocationReporttoField='position'/>
<ROUTE fromNode='HereIAm4fromField='position_changedtoNode='LocationReporttoField='position'/>
<ROUTE fromNode='HereIAm1fromField='orientation_changedtoNode='LocationReporttoField='orientation'/>
<ROUTE fromNode='HereIAm2fromField='orientation_changedtoNode='LocationReporttoField='orientation'/>
<ROUTE fromNode='HereIAm3fromField='orientation_changedtoNode='LocationReporttoField='orientation'/>
<ROUTE fromNode='HereIAm4fromField='orientation_changedtoNode='LocationReporttoField='orientation'/>
</Scene>
</X3D>
<!--

Index for DEF nodes: BoxOutline, BoxSurface, HereIAm1, HereIAm2, HereIAm3, HereIAm4, LocationReport, SensorSize
Index for Viewpoint image: Viewpoint_1
-->

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