<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://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 =' https://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<meta name='titlecontent='Proximity1.x3d'/>
<meta name='descriptioncontent='Proximity door illustrates the use of a ProximitySensor node around a door. When the traveler gets near that door, an animation is triggered that opens the door and plays a sound. When the traveler leaves the area, the door closes and another sound is played.'/>
<meta name='creatorcontent='David R. Nadeau'/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='1 July 1998'/>
<meta name='translatedcontent='2 February 2014'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='referencecontent='originals/prox1.wrl'/>
<meta name='referencecontent=' http://www.siggraph.org/s98 '/>
<meta name='referencecontent=' http://www.siggraph.org/s98/conference/courses/18.html '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0376.htm '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0389.htm '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Proximity1.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo info='"Copyright (c) 1997, David R. Nadeau"title='Proximity door'/>
<Viewpoint description='Entry viewposition='0.0 1.6 7.0'/>
<NavigationInfo avatarSize='1.0 1.6 0.75headlight='falsespeed='4.0type='"WALK" "ANY"'/>
<Inline
  url=' "DungeonRoom.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/DungeonRoom.x3d" "DungeonRoom.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/DungeonRoom.wrl" '/>

<Transform translation='0.0 0.0 -5.0'> </Transform>
<Transform translation='0.0 0.0 -4.95'> </Transform>
<Sound maxBack='60.0maxFront='60.0minBack='20.0minFront='20.0'> </Sound>
<Sound maxBack='60.0maxFront='60.0minBack='20.0minFront='20.0'> </Sound>
<!-- ROUTE information for OpenClock node:  [from DoorSense.enterTime to set_startTime ] [from DoorSense.exitTime to set_stopTime ] [from fraction_changed to LeftOpen.set_fraction ] [from fraction_changed to RightOpen.set_fraction ] -->
<TimeSensor DEF='OpenClockcycleInterval='0.5stopTime='1.0'/>
<!-- ROUTE information for CloseClock node:  [from DoorSense.exitTime to set_startTime ] [from DoorSense.enterTime to set_stopTime ] [from fraction_changed to LeftClose.set_fraction ] [from fraction_changed to RightClose.set_fraction ] -->
<TimeSensor DEF='CloseClockcycleInterval='0.5stopTime='1.0'/>
<!-- ROUTE information for LeftOpen node:  [from OpenClock.fraction_changed to set_fraction ] [from value_changed to LeftDoor.set_translation ] -->
<PositionInterpolator DEF='LeftOpenkey='0.0 1.0keyValue='0.0 0.0 0.0 -1.3 0.0 0.0'/>
<!-- ROUTE information for LeftClose node:  [from CloseClock.fraction_changed to set_fraction ] [from value_changed to LeftDoor.set_translation ] -->
<PositionInterpolator DEF='LeftClosekey='0.0 1.0keyValue='-1.3 0.0 0.0 0.0 0.0 0.0'/>
<!-- ROUTE information for RightOpen node:  [from OpenClock.fraction_changed to set_fraction ] [from value_changed to RightDoor.set_translation ] -->
<PositionInterpolator DEF='RightOpenkey='0.0 1.0keyValue='0.0 0.0 0.0 1.3 0.0 0.0'/>
<!-- ROUTE information for RightClose node:  [from CloseClock.fraction_changed to set_fraction ] [from value_changed to RightDoor.set_translation ] -->
<PositionInterpolator DEF='RightClosekey='0.0 1.0keyValue='1.3 0.0 0.0 0.0 0.0 0.0'/>
<ROUTE fromNode='DoorSensefromField='enterTimetoNode='OpenSoundtoField='set_startTime'/>
<ROUTE fromNode='DoorSensefromField='exitTimetoNode='OpenSoundtoField='set_stopTime'/>
<ROUTE fromNode='DoorSensefromField='enterTimetoNode='OpenClocktoField='set_startTime'/>
<ROUTE fromNode='DoorSensefromField='exitTimetoNode='OpenClocktoField='set_stopTime'/>
<ROUTE fromNode='DoorSensefromField='exitTimetoNode='CloseSoundtoField='set_startTime'/>
<ROUTE fromNode='DoorSensefromField='enterTimetoNode='CloseSoundtoField='set_stopTime'/>
<ROUTE fromNode='DoorSensefromField='exitTimetoNode='CloseClocktoField='set_startTime'/>
<ROUTE fromNode='DoorSensefromField='enterTimetoNode='CloseClocktoField='set_stopTime'/>
<ROUTE fromNode='OpenClockfromField='fraction_changedtoNode='LeftOpentoField='set_fraction'/>
<ROUTE fromNode='OpenClockfromField='fraction_changedtoNode='RightOpentoField='set_fraction'/>
<ROUTE fromNode='CloseClockfromField='fraction_changedtoNode='LeftClosetoField='set_fraction'/>
<ROUTE fromNode='CloseClockfromField='fraction_changedtoNode='RightClosetoField='set_fraction'/>
<ROUTE fromNode='LeftOpenfromField='value_changedtoNode='LeftDoortoField='set_translation'/>
<ROUTE fromNode='LeftClosefromField='value_changedtoNode='LeftDoortoField='set_translation'/>
<ROUTE fromNode='RightOpenfromField='value_changedtoNode='RightDoortoField='set_translation'/>
<ROUTE fromNode='RightClosefromField='value_changedtoNode='RightDoortoField='set_translation'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : CloseClock, CloseSound, Door, DoorSense, LeftClose, LeftDoor, LeftOpen, OpenClock, OpenSound, RightClose, RightDoor, RightOpen

Index for Viewpoint image : Viewpoint_1
-->

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

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