<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='Figure25_12DungeonRoomsWithSlidingDoors.x3d'/>
<meta name='creatorcontent='Figure 25.12, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/>
<meta name='referencecontent=' http://www.wiley.com/legacy/compbooks/vrml2sbk/ch25/25fig12.htm '/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='4 October 2000'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='descriptioncontent='Two dungeon rooms controlled by LOD nodes and separated by a wall and a pair of sliding doors.'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25LevelOfDetail/Figure25_12DungeonRoomsWithSlidingDoors.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!--

Index for DEF nodes : Clock, Door, DungeonRoom, LeftDoor, LeftOpen, RightDoor, RightOpen, TouchDoor

Index for Viewpoint image : Viewpoint_1
-->
<Scene>
<Viewpoint description='Click door for next dungeon roomfieldOfView='1.05position='0 2 10'/>
<NavigationInfo avatarSize='0.5 1.6 0.5headlight='falsespeed='2type='"WALK" "EXAMINE" "ANY"'/>
<Group bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<LOD range='20bboxCenter='0 0 0bboxSize='-1 -1 -1'> </LOD>
<Transform translation='0 0 -10bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<LOD range='20bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Inline USE='DungeonRoom'/>
<WorldInfo info='"null node"'/>
</LOD>
</Transform>
<Transform translation='0 0 -5bboxCenter='0 0 0bboxSize='-1 -1 -1'> </Transform>
<Transform rotation='0 1 0 1.57scale='1 1 2translation='0 0 -15bboxCenter='0 0 0bboxSize='-1 -1 -1'> </Transform>
<Transform translation='0 0 -4.95bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<!-- ROUTE information for LeftDoor node:  [from LeftOpen.value_changed to set_translation ] -->
<Transform DEF='LeftDoorbboxCenter='0 0 0bboxSize='-1 -1 -1'> </Transform>
<!-- ROUTE information for RightDoor node:  [from RightOpen.value_changed to set_translation ] -->
<Transform DEF='RightDoorbboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Transform translation='0.75 0 0bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Inline USE='Door'/>
</Transform>
</Transform>
<!-- ROUTE information for TouchDoor node:  [from touchTime to Clock.set_startTime ] -->
<TouchSensor DEF='TouchDoordescription='touch to open doors for 10 seconds'/>
</Transform>
<!-- ROUTE information for Clock node:  [from TouchDoor.touchTime to set_startTime ] [from fraction_changed to LeftOpen.set_fraction ] [from fraction_changed to RightOpen.set_fraction ] -->
<TimeSensor DEF='ClockcycleInterval='10'/>
<!-- ROUTE information for LeftOpen node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to LeftDoor.set_translation ] -->
<PositionInterpolator DEF='LeftOpenkey='0 0.05 0.8 1keyValue='0 0 0 -1.3 0 0 -1.3 0 0 0 0 0'/>
<!-- ROUTE information for RightOpen node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to RightDoor.set_translation ] -->
<PositionInterpolator DEF='RightOpenkey='0 0.05 0.8 1keyValue='0 0 0 1.3 0 0 1.3 0 0 0 0 0'/>
</Group>
<ROUTE fromNode='TouchDoorfromField='touchTimetoNode='ClocktoField='set_startTime'/>
<ROUTE fromNode='ClockfromField='fraction_changedtoNode='LeftOpentoField='set_fraction'/>
<ROUTE fromNode='ClockfromField='fraction_changedtoNode='RightOpentoField='set_fraction'/>
<ROUTE fromNode='LeftOpenfromField='value_changedtoNode='LeftDoortoField='set_translation'/>
<ROUTE fromNode='RightOpenfromField='value_changedtoNode='RightDoortoField='set_translation'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : Clock, Door, DungeonRoom, LeftDoor, LeftOpen, RightDoor, RightOpen, TouchDoor

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. -->