<?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='Rotor.x3d'/>
<meta name='createdcontent='1 September 2004'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='creatorcontent='Tay Yeong Kiang Winston'/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/ShipsMilitary/HovercraftSnr6Singapore/Rotor.x3d '/>
<meta name='descriptioncontent='Creates the motor rotor with touch sensor for rotating the blades.'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!--

Index for DEF nodes : Blade, CLOCK, MyTouchSensor, Rotor, ROTOR_TRANSFORM, RotorPathInterpolator

Index for Viewpoint image : Viewpoint_1
-->
<Scene>
<WorldInfo title='Rotor.x3d'/>
<Viewpoint description='Rotor Side Vieworientation='0 1 0 1.57position='10 0 0'/>
<Group>
<!-- ROUTE information for ROTOR_TRANSFORM node:  [from RotorPathInterpolator.value_changed to set_rotation ] -->
<Transform DEF='ROTOR_TRANSFORM'>
<Group DEF='Rotor'>
<Shape>
<Extrusion crossSection='1.00 0.00 0.92 -0.38 0.71 -0.71 0.38 -0.92 0.00 -1.00 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1.00 -0.00 -0.92 0.38 -0.71 0.71 -0.38 0.92 0.00 1.00 0.38 0.92 0.71 0.71 0.92 0.38 1.00 0.00scale='0.2 0.2 0.15 0.15 0.1 0.1spine='0 0 0.5 0 0 0.1 0 0 0'/>
<Appearance>
<Material ambientIntensity='0.0diffuseColor='0.0 0.0 0.0shininess='0.056122specularColor='0.918367 0.910614 0.885116'/>
</Appearance>
</Shape>
</Group>
<Group DEF='Blade'>
<Shape>
<Extrusion crossSection='1.00 0.00 0.92 -0.38 0.71 -0.71 0.38 -0.92 0.00 -1.00 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1.00 -0.00 -0.92 0.38 -0.71 0.71 -0.38 0.92 0.00 1.00 0.38 0.92 0.71 0.71 0.92 0.38 1.00 0.00orientation='0 1 0 0 0 1 0 1.2 0 1 0 1.5 0 1 0 1.7scale='0.05 0.1 0.05 0.15 0.05 0.15 0.05 0.15spine='0 0 0.1 0 0.6 0.1 0 2 0.1 0 2.5 0.1'/>
<Appearance>
<Material ambientIntensity='0.0diffuseColor='0.0 0.0 0.0shininess='0.056122specularColor='0.918367 0.910614 0.885116'/>
</Appearance>
</Shape>
</Group>
<Transform rotation='0 0 1 1.57'>
<Group USE='Blade'/>
</Transform>
<Transform rotation='0 0 1 -1.57'>
<Group USE='Blade'/>
</Transform>
<Transform rotation='0 0 1 3.14'>
<Group USE='Blade'/>
</Transform>
</Transform>
<!-- ROUTE information for MyTouchSensor node:  [from touchTime to CLOCK.set_startTime ] -->
<TouchSensor DEF='MyTouchSensordescription='click to start'/>
<!-- ROUTE information for CLOCK node:  [from MyTouchSensor.touchTime to set_startTime ] [from fraction_changed to RotorPathInterpolator.set_fraction ] -->
<TimeSensor DEF='CLOCKcycleInterval='4'/>
<!-- ROUTE information for RotorPathInterpolator node:  [from CLOCK.fraction_changed to set_fraction ] [from value_changed to ROTOR_TRANSFORM.set_rotation ] -->
<OrientationInterpolator DEF='RotorPathInterpolatorkey='0 0.5 1keyValue='0.0 0.0 1.0 0.0 0.0 0.0 1.0 3.14 0.0 0.0 1.0 6.28'/>
</Group>
<ROUTE fromNode='MyTouchSensorfromField='touchTimetoNode='CLOCKtoField='set_startTime'/>
<ROUTE fromNode='CLOCKfromField='fraction_changedtoNode='RotorPathInterpolatortoField='set_fraction'/>
<ROUTE fromNode='RotorPathInterpolatorfromField='value_changedtoNode='ROTOR_TRANSFORMtoField='set_rotation'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : Blade, CLOCK, MyTouchSensor, Rotor, ROTOR_TRANSFORM, RotorPathInterpolator

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