<?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='WheelsFront.x3d'/>
<meta name='descriptioncontent='The front wheels and axle perform an animation of raising or lowering when user clicks text. Wheels spin when a cursor is over the wheels.'/>
<meta name='creatorcontent='Etsuko Lippi'/>
<meta name='createdcontent='11 July 2001'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/AircraftFixedWing/F18BlueAngelUnitedStates/WheelsFront.x3d '/>
<meta name='subjectcontent='front wheels'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='WheelsFront.x3d'/>
<ExternProtoDeclare name='ViewPositionOrientationappinfo='ViewPositionOrientation provides provides console output of local position and orientation as user navigates'
  url=' "../../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation" "https://savage.nps.edu/Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation" "../../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation" "https://savage.nps.edu/Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation" '>
<field name='enabledtype='SFBoolaccessType='inputOutput'
 appinfo='Whether or not ViewPositionOrientation sends output to console.'/>

<field name='traceEnabledtype='SFBoolaccessType='initializeOnly'
 appinfo='Output internal trace messages for debugging this node - developer use only can be ignored.'/>

<field name='set_traceEnabledtype='SFBoolaccessType='inputOnly'
 appinfo='Ability to turn output tracing on/off at runtime.'/>

<field name='position_changedtype='SFVec3faccessType='outputOnly'
 appinfo='Output local position.'/>

<field name='orientation_changedtype='SFRotationaccessType='outputOnly'
 appinfo='Output local orientation.'/>

<field name='outputViewpointStringtype='MFStringaccessType='outputOnly'
 appinfo='MFString value of new Viewpoint'/>
</ExternProtoDeclare>
<Background skyColor='0.7 0.7 0.7'/>
<Viewpoint description='Front Wheels Side View Point'/>
<Switch whichChoice='0bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<ProtoInstance name='ViewPositionOrientation'/>
</Switch>
<Group bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<!-- ROUTE information for WheelsFrontAxleTransform node:  [from AxleGearUpInterpolator.value_changed to set_rotation ] [from AxleGearDownInterpolator.value_changed to set_rotation ] -->
<Transform DEF='WheelsFrontAxleTransformcenter='0 3 0bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Group bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<!-- wheels axis connecting to fuselage -->
<!-- ROUTE information for WheelTransform node:  [from WheelInterpolator.value_changed to set_rotation ] -->
<Transform DEF='WheelTransformbboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Transform scale='0.3 0.3 0.3bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Transform rotation='0 1 0 1.571bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Shape DEF='wheelbboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance>
<Material DEF='black1diffuseColor='0 0 0shininess='0.125specularColor='0.2 0.2 0.2'/>
</Appearance>
<Extrusion creaseAngle='3.14crossSection='0.00 1.30 .494 1.196 .923 .923 1.196 .494 1.30 0.00 1.196 -.494 .923 -.923 .494 -1.196 0.00 -1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
</Shape>
<Shape DEF='inside_wheelbboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance DEF='white1'>
<Material diffuseColor='1 1 1'/>
</Appearance>
<Extrusion crossSection='0.00 1.30 0.10 1.30 0.10 0.00 0.10 -1.30 0.00 -1.30 0.00 0.00 0.00 1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
</Shape>
</Transform>
<Transform rotation='0 1 0 1.571bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance USE='white1'/>
<Extrusion crossSection='-0.10 1.30 0.00 1.30 0.00 0.00 0.00 -1.30 -0.10 -1.30 -0.10 0.00 -0.10 1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
</Shape>
</Transform>
<Transform rotation='0 1 0 1.571bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance>
<Material diffuseColor='0 0.25 0.5'/>
</Appearance>
<Extrusion crossSection='-0.30 1.30 -0.10 1.30 -0.10 0.00 -0.10 -1.30 -0.30 -1.30 -0.30 0.00 -0.30 1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
</Shape>
</Transform>
</Transform>
<Transform translation='0 0 0.30bboxCenter='0 0 0bboxSize='-1 -1 -1'> </Transform>
<Transform translation='0 0 -0.30bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Inline USE='HubbboxCenter='0 0 0bboxSize='-1 -1 -1'/>
</Transform>
<!-- ROUTE information for WheelTouchSensor node:  [from isOver to Clock.set_enabled ] -->
<TouchSensor DEF='WheelTouchSensordescription='touch wheel to spin'/>
<!-- ROUTE information for Clock node:  [from WheelTouchSensor.isOver to set_enabled ] [from fraction_changed to WheelInterpolator.set_fraction ] -->
<TimeSensor DEF='ClockcycleInterval='0.5enabled='falseloop='true'/>
<!-- ROUTE information for WheelInterpolator node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to WheelTransform.set_rotation ] -->
<OrientationInterpolator DEF='WheelInterpolatorkey='0 0.5 1.0keyValue='0 0 1 0.0 0 0 1 3.14 0 0 1 6.28'/>
<ROUTE fromNode='WheelTouchSensorfromField='isOvertoNode='ClocktoField='set_enabled'/>
<ROUTE fromNode='ClockfromField='fraction_changedtoNode='WheelInterpolatortoField='set_fraction'/>
<ROUTE fromNode='WheelInterpolatorfromField='value_changedtoNode='WheelTransformtoField='set_rotation'/>
<Transform scale='0.3 0.3 0.3translation='0 0 1.5bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Transform rotation='0 1 0 1.571bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Shape DEF='wheel2bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance>
<Material DEF='blackdiffuseColor='0 0 0shininess='0.125specularColor='0.2 0.2 0.2'/>
</Appearance>
<Extrusion creaseAngle='3.14crossSection='0.00 1.30 .494 1.196 .923 .923 1.196 .494 1.30 0.00 1.196 -.494 .923 -.923 .494 -1.196 0.00 -1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
</Shape>
<Shape DEF='inside_wheel2bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance DEF='white'>
<Material diffuseColor='1 1 1'/>
</Appearance>
<Extrusion crossSection='0.00 1.30 0.10 1.30 0.10 0.00 0.10 -1.30 0.00 -1.30 0.00 0.00 0.00 1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
</Shape>
</Transform>
<Transform rotation='0 1 0 1.571bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance USE='white'/>
<Extrusion crossSection='-0.10 1.30 0.00 1.30 0.00 0.00 0.00 -1.30 -0.10 -1.30 -0.10 0.00 -0.10 1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
</Shape>
</Transform>
<Transform rotation='0 1 0 1.571bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance>
<Material diffuseColor='0 0.25 0.5'/>
</Appearance>
<Extrusion crossSection='-0.30 1.30 -0.10 1.30 -0.10 0.00 -0.10 -1.30 -0.30 -1.30 -0.30 0.00 -0.30 1.30spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/>
</Shape>
</Transform>
</Transform>
<Transform translation='0 0 1.80bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Inline USE='HubbboxCenter='0 0 0bboxSize='-1 -1 -1'/>
</Transform>
<Transform translation='0 0 1.20bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Inline USE='HubbboxCenter='0 0 0bboxSize='-1 -1 -1'/>
</Transform>
</Transform>
</Group>
<Group bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Transform bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Transform translation='0 0.55 0.75bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance DEF='axis'>
<Material ambientIntensity='0.3diffuseColor='0.3 0.3 0.3shininess='0.20specularColor='0.50 0.50 0.60'/>
</Appearance>
<Cylinder height='1radius='0.08'/>
</Shape>
</Transform>
<Transform rotation='1 0 0 1.57scale='0.7 0.7 0.7translation='0 0 1bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<!-- Axis for wheelsFront -->
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance USE='axis'/>
<Cylinder radius='0.1'/>
</Shape>
</Transform>
<Transform rotation='1 0 0 1.57scale='0.7 0.7 0.7translation='0 0 0.75bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<!-- Joint -->
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance USE='axis'/>
<Cylinder height='0.4radius='0.15'/>
</Shape>
</Transform>
<Transform scale='0.7 0.7 0.7translation='0 1.5 0.75bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<!-- main axle for front wheels -->
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance DEF='mainAxle'>
<Material diffuseColor='1.0 1.0 1.0'/>
</Appearance>
<Cylinder height='3radius='0.25'/>
</Shape>
</Transform>
<Transform rotation='0 0 -1 1.05scale='0.7 0.7 0.7translation='0.68 1.5 0.75bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<!-- assistant axle for front wheels -->
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance USE='mainAxle'/>
<Cylinder radius='0.2'/>
</Shape>
</Transform>
<Transform rotation='0 0 -1 1.05scale='0.7 0.7 0.7translation='1.8 2.15 0.75bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<!-- assistant axle for front wheels -->
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Appearance USE='mainAxle'/>
<Cylinder radius='0.3'/>
</Shape>
</Transform>
</Transform>
<Viewpoint description='Front Wheels View Pointorientation='.2 -.97 .138 1.1899position='-3.1 -.1 2.3'/>
</Group>
</Transform>
</Group>
<Group DEF='TextbboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Transform DEF='GearUpscale='2 2 2translation='-4.5 1 3bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Text string='"Gear Up"'>
<FontStyle DEF='TextFontsize='0.5'/>
</Text>
<Appearance DEF='TextAppearance'>
<Material diffuseColor='0.501961 1 0.745098'/>
</Appearance>
</Shape>
<!-- ROUTE information for AxleGearUpTouchSensor node:  [from touchTime to ClockAxleGearUp.set_startTime ] -->
<TouchSensor DEF='AxleGearUpTouchSensordescription='gear up'/>
<!-- ROUTE information for ClockAxleGearUp node:  [from AxleGearUpTouchSensor.touchTime to set_startTime ] [from fraction_changed to AxleGearUpInterpolator.set_fraction ] -->
<TimeSensor DEF='ClockAxleGearUpcycleInterval='4'/>
<!-- ROUTE information for AxleGearUpInterpolator node:  [from ClockAxleGearUp.fraction_changed to set_fraction ] [from value_changed to WheelsFrontAxleTransform.set_rotation ] -->
<OrientationInterpolator DEF='AxleGearUpInterpolatorkey='0 0.5 1.0keyValue='0 0 1 0.0 0 0 1 0.79 0 0 1 1.70'/>
<ROUTE fromNode='AxleGearUpTouchSensorfromField='touchTimetoNode='ClockAxleGearUptoField='set_startTime'/>
<ROUTE fromNode='ClockAxleGearUpfromField='fraction_changedtoNode='AxleGearUpInterpolatortoField='set_fraction'/>
<ROUTE fromNode='AxleGearUpInterpolatorfromField='value_changedtoNode='WheelsFrontAxleTransformtoField='set_rotation'/>
</Transform>
<Transform DEF='GearDownscale='2 2 2translation='-4.5 0 3bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Shape bboxCenter='0 0 0bboxSize='-1 -1 -1'>
<Text string='"Gear Down"'>
<FontStyle USE='TextFont'/>
</Text>
<Appearance USE='TextAppearance'/>
</Shape>
<!-- ROUTE information for AxleGearDownTouchSensor node:  [from touchTime to ClockAxleGearDown.set_startTime ] -->
<TouchSensor DEF='AxleGearDownTouchSensordescription='gear down'/>
<!-- ROUTE information for ClockAxleGearDown node:  [from AxleGearDownTouchSensor.touchTime to set_startTime ] [from fraction_changed to AxleGearDownInterpolator.set_fraction ] -->
<TimeSensor DEF='ClockAxleGearDowncycleInterval='4'/>
<!-- ROUTE information for AxleGearDownInterpolator node:  [from ClockAxleGearDown.fraction_changed to set_fraction ] [from value_changed to WheelsFrontAxleTransform.set_rotation ] -->
<OrientationInterpolator DEF='AxleGearDownInterpolatorkey='0 0.5 1.0keyValue='0 0 1 1.70 0 0 1 0.79 0 0 1 0.0'/>
<ROUTE fromNode='AxleGearDownTouchSensorfromField='touchTimetoNode='ClockAxleGearDowntoField='set_startTime'/>
<ROUTE fromNode='ClockAxleGearDownfromField='fraction_changedtoNode='AxleGearDownInterpolatortoField='set_fraction'/>
<ROUTE fromNode='AxleGearDownInterpolatorfromField='value_changedtoNode='WheelsFrontAxleTransformtoField='set_rotation'/>
</Transform>
</Group>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definition : ViewPositionOrientation

Index for DEF nodes : axis, AxleGearDownInterpolator, AxleGearDownTouchSensor, AxleGearUpInterpolator, AxleGearUpTouchSensor, black, black1, Clock, ClockAxleGearDown, ClockAxleGearUp, GearDown, GearUp, Hub, inside_wheel, inside_wheel2, mainAxle, Text, TextAppearance, TextFont, wheel, wheel2, WheelInterpolator, WheelsFrontAxleTransform, WheelTouchSensor, WheelTransform, white, white1

Index for Viewpoint images : Viewpoint_1, Viewpoint_2
-->

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