<?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=' Example15.x3d '/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='26 June 2000'/>
<meta name='modifiedcontent='28 October 2019'/>
<meta name='creatorcontent='X3D working group'/>
<meta name='descriptioncontent='VRML 97 specification example: Robot. Seek or zoom in towards the robot to start a simple animation sequence.'/>
<meta name='referencecontent='originals/exampleD_15.wrl'/>
<meta name='specificationSectioncontent=' VRML 97, ISO/IEC 14772-1, Part 1: Functional specification and UTF-8 encoding, D.15 Robot'/>
<meta name='specificationUrlcontent=' https://www.web3d.org/documents/specifications/14772/V2.0/part1/examples.html#D.15 '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Example15.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: A, Arm, Near, WALK

Index for Viewpoint node: Viewpoint_1 Index for ExternProtoDeclare definitions: Pendulum, Shuttle
-->
<Scene>
<WorldInfo title='Example15.x3d'/>
<ExternProtoDeclare name='Shuttle'
  url=' "Example14.wrl#Shuttle" "https://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Example14.wrl#Shuttle" "Example14.x3d#Shuttle" "https://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Example14.x3d#Shuttle" ' >
<field name='ratetype='SFTimeaccessType='initializeOnly'/>
<field name='distancetype='SFFloataccessType='initializeOnly'/>
<field name='childrentype='MFNodeaccessType='initializeOnly'/>
<field name='startTimetype='SFTimeaccessType='inputOutput'/>
<field name='stopTimetype='SFTimeaccessType='inputOutput'/>
<field name='looptype='SFBoolaccessType='initializeOnly'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='Pendulum'
  url=' "Example14.wrl#Pendulum" "https://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Example14.wrl#Pendulum" "Example14.x3d#Pendulum" "https://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Example14.x3d#Pendulum" ' >
<field name='ratetype='SFTimeaccessType='initializeOnly'/>
<field name='maxAngletype='SFFloataccessType='initializeOnly'/>
<field name='childrentype='MFNodeaccessType='initializeOnly'/>
<field name='startTimetype='SFTimeaccessType='inputOutput'/>
<field name='stopTimetype='SFTimeaccessType='inputOutput'/>
<field name='looptype='SFBoolaccessType='initializeOnly'/>
</ExternProtoDeclare>
<NavigationInfo speed='20type='"WALK" "ANY"'/>
<Viewpoint description='zoom inposition='0 0 150'/>
<!-- ROUTE information for Near node:  [from enterTime to WALK.startTime ] [from enterTime to Arm.startTime ] [from exitTime to WALK.stopTime ] [from exitTime to Arm.stopTime ] -->
<ProximitySensor DEF='Nearsize='200 200 200'/>

<!-- ROUTE information for WALK node:  [from Near.enterTime to startTime ] [from Near.exitTime to stopTime ] -->
<ProtoInstance name='ShuttleDEF='WALK'>
<fieldValue name='stopTimevalue='1'/>
<fieldValue name='ratevalue='10'/>
<fieldValue name='distancevalue='20'/>
<fieldValue name='children'>
<Transform rotation='0 1 0 1.57'>
<Shape>
<Appearance DEF='A'>
<Material diffuseColor='0 0.5 0.7'/>
</Appearance>
<!-- head -->
<Box/>
</Shape>
<Transform scale='1 5 1translation='0 -5 0'>
<Shape>
<Appearance USE=' A'/>
<!-- body -->
<Sphere/>
</Shape>
</Transform>
<Transform rotation='0 1 0 1.57translation='1.5 0 0'>
<!-- ROUTE information for Arm node:  [from Near.enterTime to startTime ] [from Near.exitTime to stopTime ] -->
<ProtoInstance name='PendulumDEF='Arm'>
<fieldValue name='stopTimevalue='1'/>
<fieldValue name='ratevalue='1'/>
<fieldValue name='maxAnglevalue='0.52'/>
<fieldValue name='children'>
<Transform translation='0 -3 0'>
<Shape>
<Appearance USE=' A'/>
<Cylinder height='4radius='0.5'/>
</Shape>
</Transform>
</fieldValue>
</ProtoInstance>
</Transform>
<Transform rotation='0 -1 0 1.57translation='-1.5 0 0'>
<ProtoInstance USE=' Arm'/>
</Transform>
</Transform>
</fieldValue>
</ProtoInstance>
< ROUTE  fromNode=' Near' fromField='enterTime' toNode=' WALK' toField='startTime'/>
< ROUTE  fromNode=' Near' fromField='enterTime' toNode=' Arm' toField='startTime'/>
< ROUTE  fromNode=' Near' fromField='exitTime' toNode=' WALK' toField='stopTime'/>
< ROUTE  fromNode=' Near' fromField='exitTime' toNode=' Arm' toField='stopTime'/>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: A, Arm, Near, WALK

Index for Viewpoint node: Viewpoint_1 Index for ExternProtoDeclare definitions: Pendulum, Shuttle
-->

Event Graph ROUTE Table entries with 4 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

Near
ProximitySensor
enterTime
SFTime

ROUTE
event to
(1)
WALK
ProtoInstance
startTime
SFTime
Near
ProximitySensor
enterTime
SFTime

ROUTE
event to
(1)
Arm
ProtoInstance
startTime
SFTime
Near
ProximitySensor
exitTime
SFTime

ROUTE
event to
(1)
WALK
ProtoInstance
stopTime
SFTime
Near
ProximitySensor
exitTime
SFTime

ROUTE
event to
(1)
Arm
ProtoInstance
stopTime
SFTime


      Arm
ProtoInstance
Pendulum
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 


      WALK
ProtoInstance
Shuttle
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Example15Index.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Example15.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

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