<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://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 =' http://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<meta name='titlecontent='TumbleGroup.x3d'/>
<meta name='descriptioncontent='Tumble group: this file contains a Prototype declaration to manage a group of shapes, tumbling them in X, Y, and Z directions.'/>
<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='9 February 2014'/>
<meta name='referencecontent='Loader.x3d'/>
<meta name='referencecontent='One.x3d'/>
<meta name='referencecontent='Two.x3d'/>
<meta name='referencecontent='Three.x3d'/>
<meta name='referencecontent='Boxes.x3d'/>
<meta name='referencecontent='originals/tumgrp.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/mt0465.htm '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0469.htm '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm '/>
<meta name='referencecontent=' http://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TumbleGroup.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>
<!--

Index for ProtoDeclare definition : TumbleGroup

Index for DEF nodes : XClock, XRot, XRotIt, YClock, YRot, YRotIt, ZClock, ZRot, ZRotIt
-->
<Scene>
<ProtoDeclare name='TumbleGroup'>
<ProtoInterface>
<field name='xTumbleIntervaltype='SFTimevalue='3.0accessType='initializeOnly'/>
<field name='childrentype='MFNodeaccessType='initializeOnly'>
<!-- ProtoInstance needs to initialize children with a fieldValue -->
</field>
<field name='zTumbleIntervaltype='SFTimevalue='5.0accessType='initializeOnly'/>
<field name='translationtype='SFVec3fvalue='0.0 0.0 0.0accessType='initializeOnly'/>
<field name='yTumbleIntervaltype='SFTimevalue='1.0accessType='initializeOnly'/>
</ProtoInterface>
<ProtoBody>
<!-- ROUTE information for XRot node:  [from XRotIt.value_changed to set_rotation ] -->
<Transform DEF='XRot'>
<!-- ROUTE information for YRot node:  [from YRotIt.value_changed to set_rotation ] -->
<Transform DEF='YRot'>
<!-- ROUTE information for ZRot node:  [from ZRotIt.value_changed to set_rotation ] -->
<Transform DEF='ZRot'>
<IS>
<connect nodeField='translationprotoField='translation'/>
<connect nodeField='childrenprotoField='children'/>
</IS>
</Transform>
</Transform>
</Transform>
<!-- ROUTE information for XClock node:  [from fraction_changed to XRotIt.set_fraction ] -->
<TimeSensor DEF='XClockloop='truestartTime='1.0'>
<IS>
<connect nodeField='cycleIntervalprotoField='xTumbleInterval'/>
</IS>
</TimeSensor>
<!-- ROUTE information for YClock node:  [from fraction_changed to YRotIt.set_fraction ] -->
<TimeSensor DEF='YClockloop='truestartTime='1.0'>
<IS>
<connect nodeField='cycleIntervalprotoField='yTumbleInterval'/>
</IS>
</TimeSensor>
<!-- ROUTE information for ZClock node:  [from fraction_changed to ZRotIt.set_fraction ] -->
<TimeSensor DEF='ZClockloop='truestartTime='1.0'>
<IS>
<connect nodeField='cycleIntervalprotoField='zTumbleInterval'/>
</IS>
</TimeSensor>
<!-- ROUTE information for XRotIt node:  [from XClock.fraction_changed to set_fraction ] [from value_changed to XRot.set_rotation ] -->
<OrientationInterpolator DEF='XRotItkey='0.0 0.25 0.5 0.75 1.0keyValue='1.0 0.0 0.0 0.0 1.0 0.0 0.0 1.57 1.0 0.0 0.0 3.14 1.0 0.0 0.0 4.71 1.0 0.0 0.0 6.28'/>
<!-- ROUTE information for YRotIt node:  [from YClock.fraction_changed to set_fraction ] [from value_changed to YRot.set_rotation ] -->
<OrientationInterpolator DEF='YRotItkey='0.0 0.25 0.5 0.75 1.0keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 1.57 0.0 1.0 0.0 3.14 0.0 1.0 0.0 4.71 0.0 1.0 0.0 6.28'/>
<!-- ROUTE information for ZRotIt node:  [from ZClock.fraction_changed to set_fraction ] [from value_changed to ZRot.set_rotation ] -->
<OrientationInterpolator DEF='ZRotItkey='0.0 0.25 0.5 0.75 1.0keyValue='0.0 0.0 1.0 0.0 0.0 0.0 1.0 1.57 0.0 0.0 1.0 3.14 0.0 0.0 1.0 4.71 0.0 0.0 1.0 6.28'/>
<ROUTE fromNode='XClockfromField='fraction_changedtoNode='XRotIttoField='set_fraction'/>
<ROUTE fromNode='YClockfromField='fraction_changedtoNode='YRotIttoField='set_fraction'/>
<ROUTE fromNode='ZClockfromField='fraction_changedtoNode='ZRotIttoField='set_fraction'/>
<ROUTE fromNode='XRotItfromField='value_changedtoNode='XRottoField='set_rotation'/>
<ROUTE fromNode='YRotItfromField='value_changedtoNode='YRottoField='set_rotation'/>
<ROUTE fromNode='ZRotItfromField='value_changedtoNode='ZRottoField='set_rotation'/>
</ProtoBody>
</ProtoDeclare>
<!-- Display scene instructions for viewing an example scene with a corresponding prototype instance -->
<Background skyColor='0 0.333333 0.66667'/>
<Anchor description='select text to view parent scene'
  url=' "Loader.x3d" "http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Loader.x3d" "Loader.wrl" "http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Loader.wrl" '>
<Shape>
<Text string='"The TumbleGroup.x3d scene holds" "a prototype declaration" "" "Select this text to view example usage" "in Loader.x3d scene"'>
<FontStyle justify='"MIDDLE" "MIDDLE"style='BOLD'/>
</Text>
<Appearance>
<Material diffuseColor='1 0.9 0.4'/>
</Appearance>
</Shape>
<!-- Invisible box behind text makes selection easier -->
<Shape>
<Box size='12 5 0.1'/>
<Appearance>
<Material transparency='1'/>
</Appearance>
</Shape>
</Anchor>
</Scene>
</X3D>
<!--

Index for ProtoDeclare definition : TumbleGroup

Index for DEF nodes : XClock, XRot, XRotIt, YClock, YRot, YRotIt, ZClock, ZRot, ZRotIt
-->

<!-- 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)
    <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->

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