<?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='CarrierGuns.x3d'/>
<meta name='descriptioncontent='Simple guns for carrier'/>
<meta name='creatorcontent='Chun Hock Sng'/>
<meta name='createdcontent='1 February 2001'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='identifiercontent=' https://savage.nps.edu/Savage/ShipsMilitary/CarrierSaratogaUnitedStates/CarrierGuns.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='CarrierGuns.x3d'/>
<Group DEF='Guns'>
<!-- ROUTE information for Rotate_Gun1 node:  [from Gun_1.value_changed to set_rotation ] -->
<Transform DEF='Rotate_Gun1center='16 0 0'>
<Shape DEF='Gun1'>
<Extrusion creaseAngle='3.14crossSection='15 1 18 1 18.5 0.5 19 0 18.5 -0.5 18 -1 15 -1 15 1scale='0.90 0.90 0.90 0.90spine='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.57079translation='13.25 -1.5 0'>
<Shape DEF='Gun_barrel1'>
<Cylinder height='3.5radius='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='TouchSensor1enabled='false'/>
<!-- ROUTE information for CLOCK1 node:  [from TouchSensor1.isOver to set_enabled ] [from fraction_changed to Gun_1.set_fraction ] -->
<TimeSensor DEF='CLOCK1cycleInterval='10loop='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_1key='0.0 0.25 0.5 0.75 1.0keyValue='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_Gun2center='27 0 0'>
<Shape DEF='Gun2'>
<Extrusion creaseAngle='3.14crossSection='27.5 0 30.5 0 31 -0.5 31.5 -1 31 -1.5 30.5 -2 27.5 -2 27.5 0scale='0.90 0.90 0.90 0.90spine='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.57079translation='24.25 -1.5 -1'>
<Shape DEF='Gun_barrel2'>
<Cylinder height='3.5radius='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='CLOCK2cycleInterval='10enabled='falseloop='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_2key='0.0 0.25 0.5 0.75 1.0keyValue='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_Gun3center='16 0 -34'>
<Shape DEF='Gun3'>
<Extrusion creaseAngle='3.14crossSection='15 -36.5 18 -36.5 18.5 -37 19 -37.5 18.5 -38 18 -38.5 15 -38.5 15 -36.5scale='0.90 0.90 0.90 0.90spine='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.57079translation='13.25 -1.5 -33.6'>
<Shape DEF='Gun_barrel3'>
<Cylinder height='3.5radius='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='TouchSensor3enabled='false'/>
<!-- ROUTE information for CLOCK3 node:  [from TouchSensor3.isOver to set_enabled ] [from fraction_changed to Gun_3.set_fraction ] -->
<TimeSensor DEF='CLOCK3cycleInterval='10loop='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_3key='0.0 0.25 0.5 0.75 1.0keyValue='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_Gun4center='27 0 -33'>
<Shape DEF='Gun4'>
<Extrusion creaseAngle='3.14crossSection='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.5scale='0.90 0.90 0.90 0.90spine='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.57079translation='24.25 -1.5 -32.6'>
<Shape DEF='Gun_barrel4'>
<Cylinder height='3.5radius='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_4key='0.0 0.25 0.5 0.75 1.0keyValue='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='CLOCK4cycleInterval='10enabled='falseloop='true'/>
</Transform>
<Viewpoint description='CarrierGunsposition='18 5 25'/>
</Group>
<ROUTE fromNode='TouchSensor1fromField='isOvertoNode='CLOCK1toField='set_enabled'/>
<ROUTE fromNode='CLOCK1fromField='fraction_changedtoNode='Gun_1toField='set_fraction'/>
<ROUTE fromNode='Gun_1fromField='value_changedtoNode='Rotate_Gun1toField='set_rotation'/>
<ROUTE fromNode='TouchSensor2fromField='isOvertoNode='CLOCK2toField='set_enabled'/>
<ROUTE fromNode='CLOCK2fromField='fraction_changedtoNode='Gun_2toField='set_fraction'/>
<ROUTE fromNode='Gun_2fromField='value_changedtoNode='Rotate_Gun2toField='set_rotation'/>
<ROUTE fromNode='TouchSensor3fromField='isOvertoNode='CLOCK3toField='set_enabled'/>
<ROUTE fromNode='TouchSensor4fromField='isOvertoNode='CLOCK4toField='set_enabled'/>
<ROUTE fromNode='CLOCK3fromField='fraction_changedtoNode='Gun_3toField='set_fraction'/>
<ROUTE fromNode='CLOCK4fromField='fraction_changedtoNode='Gun_4toField='set_fraction'/>
<ROUTE fromNode='Gun_3fromField='value_changedtoNode='Rotate_Gun3toField='set_rotation'/>
<ROUTE fromNode='Gun_4fromField='value_changedtoNode='Rotate_Gun4toField='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)
-->

<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints. -->