<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://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 =' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='speed_range.x3d'/>
<meta name='referencecontent=' http://www.nist.gov/vrml.html '/>
<meta name='referencecontent=' http://www.itl.nist.gov/div897/ctg/vrml/vrml.html '/>
<meta name='creatorcontent=' http://www.itl.nist.gov/div897/ctg/vrml/members.html '/>
<meta name='disclaimercontent=' This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology. This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified. '/>
<meta name='infocontent='Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, http://www.web3d.org/working-groups/x3d'/>
<meta name='translatorcontent='Michael Kass NIST, Don Brutzman NPS'/>
<meta name='translatedcontent='21 January 2001'/>
<meta name='modifiedcontent='21 January 2017'/>
<meta name='descriptioncontent='Test speed range. A NavigationInfo node can be modified with speed values of 0, 1 and 10 meters per second by indicating the appropriate text in this world. A speedometer located in the lower left portion of the screen shows the current avatar speed. Indicating the red Sphere in this world set the NavigationInfo node speed to "0". Indicating the yellow Sphere sets the speed to 1 meter per second for default navigation. Indicating the green sphere sets the speed to 10 meters per second for default navigation. The "speedometer" should reflect these changes when the browser speed control is set to the default normal navigation speed.'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/speed_range.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<Background groundAngle='1.57groundColor='0 0.5 0 0 0.5 0skyColor='0 0 1'/>
<Viewpoint DEF='DEFAULTdescription='default speed'/>
<Viewpoint DEF='VIEW0description='speed=0'/>
<Viewpoint DEF='VIEW1description='speed=1'/>
<Viewpoint DEF='VIEW10description='speed=10'/>
<NavigationInfo DEF='NAV1'/>
<!-- ROUTE information for PROX_SENSOR node:  [from position_changed to SPEEDSCRIPT.printSpeed ] [from position_changed to TRANS0.set_translation ] [from orientation_changed to TRANS0.set_rotation ] [from position_changed to TRANS1.set_translation ] [from orientation_changed to TRANS1.set_rotation ] [from position_changed to TRANS2.set_translation ] [from orientation_changed to TRANS2.set_rotation ] [from position_changed to TRANS4.set_translation ] [from orientation_changed to TRANS4.set_rotation ] -->
<ProximitySensor DEF='PROX_SENSORsize='100000 100000 100000'/>
<!-- ROUTE information for TIME node:  [from cycleTime to SPEEDSCRIPT.printZero ] -->
<TimeSensor DEF='TIMEloop='true'/>
<!-- ROUTE information for TRANS0 node:  [from PROX_SENSOR.position_changed to set_translation ] [from PROX_SENSOR.orientation_changed to set_rotation ] -->
<Transform DEF='TRANS0'>
<Transform translation='-0.525 0.35 -1'>
<Shape>
<Appearance>
<Material diffuseColor='1 1 1'/>
</Appearance>
<Text DEF='TYPESTRING2string=' "Default speed of 1 meter/sec"
'>
<FontStyle size='0.1'/>
</Text>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for TRANS1 node:  [from PROX_SENSOR.position_changed to set_translation ] [from PROX_SENSOR.orientation_changed to set_rotation ] -->
<Transform DEF='TRANS1'>
<Transform translation='-0.15 -0.4 -1'>
<Shape>
<Appearance>
<Material diffuseColor='0 0 0'/>
</Appearance>
<Text DEF='TYPESTRING1string='"speed = 0"'>
<FontStyle size='0.1'/>
</Text>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for TRANS2 node:  [from PROX_SENSOR.position_changed to set_translation ] [from PROX_SENSOR.orientation_changed to set_rotation ] -->
<Transform DEF='TRANS2'>
<Transform translation='-3.5 2 -10'>
<!-- ROUTE information for TOUCH0 node:  [from isActive to SPEEDSCRIPT.changeSpeed0 ] [from isOver to SPEEDSCRIPT.printZeroSpeed ] -->
<TouchSensor DEF='TOUCH0description='touch for speed=0'/>
<Shape>
<Appearance> </Appearance>
<Box size='2 1.5 0.1'/>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for TRANS4 node:  [from PROX_SENSOR.position_changed to set_translation ] [from PROX_SENSOR.orientation_changed to set_rotation ] -->
<Transform DEF='TRANS4'>
<Transform translation='-3.5 0 -10'>
<!-- ROUTE information for TOUCH100 node:  [from isActive to SPEEDSCRIPT.changeSpeed100 ] [from isOver to SPEEDSCRIPT.printHundredSpeed ] -->
<TouchSensor DEF='TOUCH100description='touch for speed=100'/>
<Shape>
<Appearance> </Appearance>
<Box size='2 1.5 0.1'/>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for SPEEDSCRIPT node:  [from TOUCH0.isActive to changeSpeed0 ] [from TOUCH0.isOver to printZeroSpeed ] [from TOUCH100.isActive to changeSpeed100 ] [from TOUCH100.isOver to printHundredSpeed ] [from PROX_SENSOR.position_changed to printSpeed ] [from TIME.cycleTime to printZero ] -->
<Script DEF='SPEEDSCRIPTdirectOutput='true'
  url=' "speed_range.js" "http://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/NavigationInfo/speed_range.js" '>
<field name='proxSensortype='SFNodeaccessType='initializeOnly'>
<ProximitySensor USE='PROX_SENSOR'/>
</field>
<field name='trans1type='SFNodeaccessType='initializeOnly'>
<Transform USE='TRANS1'/>
</field>
<field name='typestring1type='SFNodeaccessType='initializeOnly'>
<Text USE='TYPESTRING1'/>
</field>
<field name='typestring2type='SFNodeaccessType='initializeOnly'>
<Text USE='TYPESTRING2'/>
</field>
<field name='previousTimetype='SFTimevalue='0accessType='initializeOnly'/>
<field name='previousLoctype='SFVec3fvalue='0 0 100accessType='initializeOnly'/>
<field name='currentLoctype='SFVec3fvalue='0 0 10accessType='initializeOnly'/>
<field name='view0type='SFNodeaccessType='initializeOnly'>
<Viewpoint USE='VIEW0'/>
</field>
<field name='view1type='SFNodeaccessType='initializeOnly'>
<Viewpoint USE='VIEW1'/>
</field>
<field name='view10type='SFNodeaccessType='initializeOnly'>
<Viewpoint USE='VIEW10'/>
</field>
<field name='nav1type='SFNodeaccessType='initializeOnly'>
<NavigationInfo USE='NAV1'/>
</field>
<field name='positiontype='SFVec3fvalue='0 0 0accessType='initializeOnly'/>
<field name='zerotype='MFStringvalue='"current speed = 0"accessType='initializeOnly'/>
<field name='emptyStringtype='MFStringaccessType='initializeOnly'/>
<field name='setZeroSpeedStringtype='MFStringvalue=' "Click to set speed to 0 meters/sec"
accessType='initializeOnly'/>

<field name='speedSetToZeroStringtype='MFStringvalue=' "Speed set to 0 meters/sec"
accessType='initializeOnly'/>

<field name='setHundredSpeedStringtype='MFStringvalue=' "Click to set speed to 100 meters/sec"
accessType='initializeOnly'/>

<field name='speedSetToHundredStringtype='MFStringvalue=' "Speed set to 100 meters/sec"
accessType='initializeOnly'/>

<field name='printSpeedtype='SFVec3faccessType='inputOnly'/>
<field name='changeSpeed0type='SFBoolaccessType='inputOnly'/>
<field name='changeSpeed100type='SFBoolaccessType='inputOnly'/>
<field name='printZeroSpeedtype='SFBoolaccessType='inputOnly'/>
<field name='printHundredSpeedtype='SFBoolaccessType='inputOnly'/>
<field name='printZerotype='SFTimeaccessType='inputOnly'/>
</Script>
<ROUTE fromNode='TOUCH0fromField='isActivetoNode='SPEEDSCRIPTtoField='changeSpeed0'/>
<ROUTE fromNode='TOUCH0fromField='isOvertoNode='SPEEDSCRIPTtoField='printZeroSpeed'/>
<ROUTE fromNode='TOUCH100fromField='isActivetoNode='SPEEDSCRIPTtoField='changeSpeed100'/>
<ROUTE fromNode='TOUCH100fromField='isOvertoNode='SPEEDSCRIPTtoField='printHundredSpeed'/>
<ROUTE fromNode='PROX_SENSORfromField='position_changedtoNode='SPEEDSCRIPTtoField='printSpeed'/>
<ROUTE fromNode='PROX_SENSORfromField='position_changedtoNode='TRANS0toField='set_translation'/>
<ROUTE fromNode='PROX_SENSORfromField='orientation_changedtoNode='TRANS0toField='set_rotation'/>
<ROUTE fromNode='PROX_SENSORfromField='position_changedtoNode='TRANS1toField='set_translation'/>
<ROUTE fromNode='PROX_SENSORfromField='orientation_changedtoNode='TRANS1toField='set_rotation'/>
<ROUTE fromNode='PROX_SENSORfromField='position_changedtoNode='TRANS2toField='set_translation'/>
<ROUTE fromNode='PROX_SENSORfromField='orientation_changedtoNode='TRANS2toField='set_rotation'/>
<ROUTE fromNode='PROX_SENSORfromField='position_changedtoNode='TRANS4toField='set_translation'/>
<ROUTE fromNode='PROX_SENSORfromField='orientation_changedtoNode='TRANS4toField='set_rotation'/>
<ROUTE fromNode='TIMEfromField='cycleTimetoNode='SPEEDSCRIPTtoField='printZero'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : DEFAULT, NAV1, PROX_SENSOR, SPEEDSCRIPT, TIME, TOUCH0, TOUCH100, TRANS0, TRANS1, TRANS2, TRANS4, TYPESTRING1, TYPESTRING2, VIEW0, VIEW1, VIEW10

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3, DEFAULT, VIEW0, VIEW1, VIEW10
-->

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

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