<?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='title' content='CarrierGuns.x3d'/>
<meta name='description' content='Simple guns for carrier'/>
<meta name='creator' content='Chun Hock Sng'/>
<meta name='created' content='1 February 2001'/>
<meta name='modified' content='14 January 2014'/>
<meta name='identifier' content=' https://savage.nps.edu/Savage/ShipsMilitary/Carrier-Saratoga-UnitedStates/CarrierGuns.x3d '/>
<meta name='generator' content='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='license' content=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<Group DEF='Guns'>
<!-- ROUTE information for Rotate_Gun1 node:  [from Gun_1.value_changed to set_rotation ] -->
<Transform DEF='Rotate_Gun1' center='16 0 0'>
<Shape DEF='Gun1'>
<Extrusion creaseAngle='3.14' crossSection='15 1 18 1 18.5 0.5 19 0 18.5 -0.5 18 -1 15 -1 15 1' scale='0.90 0.90 0.90 0.90' spine='0 -2.5 0 0 -0.1 0'/>
<Appearance>
<Material diffuseColor='0.3 0.3 0.3'/>
</Appearance>
</Shape>
<Transform rotation='0 0 1 1.57079' translation='13.25 -1.5 0'>
<Shape DEF='Gun_barrel1'>
<Cylinder height='3.5' radius='0.1'/>
<Appearance>
<Material diffuseColor='0.4 0.4 0.4'/>
</Appearance>
</Shape>
</Transform>
<!-- ROUTE information for TouchSensor1 node:  [from isOver to CLOCK1.set_enabled ] -->
<TouchSensor DEF='TouchSensor1' enabled='false'/>
<!-- ROUTE information for CLOCK1 node:  [from TouchSensor1.isOver to set_enabled ] [from fraction_changed to Gun_1.set_fraction ] -->
<TimeSensor DEF='CLOCK1' cycleInterval='10' loop='true'/>
<!-- ROUTE information for Gun_1 node:  [from CLOCK1.fraction_changed to set_fraction ] [from value_changed to Rotate_Gun1.set_rotation ] -->
<OrientationInterpolator DEF='Gun_1' key='0.0 0.25 0.5 0.75 1.0' keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.78 0.0 1.0 0.0 1.57079 0.0 1 0 0.78 0 1 0 0'/>
</Transform>
<!-- ROUTE information for Rotate_Gun2 node:  [from Gun_2.value_changed to set_rotation ] -->
<Transform DEF='Rotate_Gun2' center='27 0 0'>
<Shape DEF='Gun2'>
<Extrusion creaseAngle='3.14' crossSection='27.5 0 30.5 0 31 -0.5 31.5 -1 31 -1.5 30.5 -2 27.5 -2 27.5 0' scale='0.90 0.90 0.90 0.90' spine='0 -2.5 0 0 -0.1 0'/>
<Appearance>
<Material diffuseColor='0.3 0.3 0.3'/>
</Appearance>
</Shape>
<Transform rotation='0 0 1 1.57079' translation='24.25 -1.5 -1'>
<Shape DEF='Gun_barrel2'>
<Cylinder height='3.5' radius='0.1'/>
<Appearance>
<Material diffuseColor='0.4 0.4 0.4'/>
</Appearance>
</Shape>
</Transform>
<!-- ROUTE information for TouchSensor2 node:  [from isOver to CLOCK2.set_enabled ] -->
<TouchSensor DEF='TouchSensor2'/>
<!-- ROUTE information for CLOCK2 node:  [from TouchSensor2.isOver to set_enabled ] [from fraction_changed to Gun_2.set_fraction ] -->
<TimeSensor DEF='CLOCK2' cycleInterval='10' enabled='false' loop='true'/>
<!-- ROUTE information for Gun_2 node:  [from CLOCK2.fraction_changed to set_fraction ] [from value_changed to Rotate_Gun2.set_rotation ] -->
<OrientationInterpolator DEF='Gun_2' key='0.0 0.25 0.5 0.75 1.0' keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.78 0.0 1.0 0.0 1.57079 0.0 1 0 0.78 0 1 0 0'/>
</Transform>
<!-- ROUTE information for Rotate_Gun3 node:  [from Gun_3.value_changed to set_rotation ] -->
<Transform DEF='Rotate_Gun3' center='16 0 -34'>
<Shape DEF='Gun3'>
<Extrusion creaseAngle='3.14' crossSection='15 -36.5 18 -36.5 18.5 -37 19 -37.5 18.5 -38 18 -38.5 15 -38.5 15 -36.5' scale='0.90 0.90 0.90 0.90' spine='0 -2.5 0 0 -0.1 0'/>
<Appearance>
<Material diffuseColor='0.3 0.3 0.3'/>
</Appearance>
</Shape>
<Transform rotation='0 0 1 1.57079' translation='13.25 -1.5 -33.6'>
<Shape DEF='Gun_barrel3'>
<Cylinder height='3.5' radius='0.1'/>
<Appearance>
<Material diffuseColor='0.4 0.4 0.4'/>
</Appearance>
</Shape>
</Transform>
<!-- ROUTE information for TouchSensor3 node:  [from isOver to CLOCK3.set_enabled ] -->
<TouchSensor DEF='TouchSensor3' enabled='false'/>
<!-- ROUTE information for CLOCK3 node:  [from TouchSensor3.isOver to set_enabled ] [from fraction_changed to Gun_3.set_fraction ] -->
<TimeSensor DEF='CLOCK3' cycleInterval='10' loop='true'/>
<!-- ROUTE information for Gun_3 node:  [from CLOCK3.fraction_changed to set_fraction ] [from value_changed to Rotate_Gun3.set_rotation ] -->
<OrientationInterpolator DEF='Gun_3' key='0.0 0.25 0.5 0.75 1.0' keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 -0.78 0.0 1.0 0.0 -1.57079 0.0 1 0 -0.78 0 1 0 0'/>
</Transform>
<!-- ROUTE information for Rotate_Gun4 node:  [from Gun_4.value_changed to set_rotation ] -->
<Transform DEF='Rotate_Gun4' center='27 0 -33'>
<Shape DEF='Gun4'>
<Extrusion creaseAngle='3.14' crossSection='27.5 -35.5 30.5 -35.5 31 -36 31.5 -36.5 31 -37 30.5 -37.5 27.5 -37.5 27.5 -35.5' scale='0.90 0.90 0.90 0.90' spine='0 -2.5 0 0 -0.1 0'/>
<Appearance>
<Material diffuseColor='0.3 0.3 0.3'/>
</Appearance>
</Shape>
<Transform rotation='0 0 1 1.57079' translation='24.25 -1.5 -32.6'>
<Shape DEF='Gun_barrel4'>
<Cylinder height='3.5' radius='0.1'/>
<Appearance>
<Material diffuseColor='0.4 0.4 0.4'/>
</Appearance>
</Shape>
</Transform>
<!-- ROUTE information for TouchSensor4 node:  [from isOver to CLOCK4.set_enabled ] -->
<TouchSensor DEF='TouchSensor4'/>
<!-- ROUTE information for Gun_4 node:  [from CLOCK4.fraction_changed to set_fraction ] [from value_changed to Rotate_Gun4.set_rotation ] -->
<OrientationInterpolator DEF='Gun_4' key='0.0 0.25 0.5 0.75 1.0' keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 -0.78 0.0 1.0 0.0 -1.57079 0.0 1 0 -0.78 0 1 0 0'/>
<!-- ROUTE information for CLOCK4 node:  [from TouchSensor4.isOver to set_enabled ] [from fraction_changed to Gun_4.set_fraction ] -->
<TimeSensor DEF='CLOCK4' cycleInterval='10' enabled='false' loop='true'/>
</Transform>
<Viewpoint description='CarrierGuns' position='18 5 25'/>
</Group>
<ROUTE fromNode='TouchSensor1' fromField='isOver' toNode='CLOCK1' toField='set_enabled'/>
<ROUTE fromNode='CLOCK1' fromField='fraction_changed' toNode='Gun_1' toField='set_fraction'/>
<ROUTE fromNode='Gun_1' fromField='value_changed' toNode='Rotate_Gun1' toField='set_rotation'/>
<ROUTE fromNode='TouchSensor2' fromField='isOver' toNode='CLOCK2' toField='set_enabled'/>
<ROUTE fromNode='CLOCK2' fromField='fraction_changed' toNode='Gun_2' toField='set_fraction'/>
<ROUTE fromNode='Gun_2' fromField='value_changed' toNode='Rotate_Gun2' toField='set_rotation'/>
<ROUTE fromNode='TouchSensor3' fromField='isOver' toNode='CLOCK3' toField='set_enabled'/>
<ROUTE fromNode='TouchSensor4' fromField='isOver' toNode='CLOCK4' toField='set_enabled'/>
<ROUTE fromNode='CLOCK3' fromField='fraction_changed' toNode='Gun_3' toField='set_fraction'/>
<ROUTE fromNode='CLOCK4' fromField='fraction_changed' toNode='Gun_4' toField='set_fraction'/>
<ROUTE fromNode='Gun_3' fromField='value_changed' toNode='Rotate_Gun3' toField='set_rotation'/>
<ROUTE fromNode='Gun_4' fromField='value_changed' toNode='Rotate_Gun4' toField='set_rotation'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : CLOCK1, CLOCK2, CLOCK3, CLOCK4, Gun_1, Gun_2, Gun_3, Gun_4, Gun_barrel1, Gun_barrel2, Gun_barrel3, Gun_barrel4, Gun1, Gun2, Gun3, Gun4, Guns, Rotate_Gun1, Rotate_Gun2, Rotate_Gun3, Rotate_Gun4, TouchSensor1, TouchSensor2, TouchSensor3, TouchSensor4

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

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