#X3D V3.0 utf8 PROFILE Immersive # [X3D] version=3.0 # [X3D] noNamespaceSchemaLocation=https://www.web3d.org/specifications/x3d-3.0.xsd # X3D-to-ClassicVRML XSL translation autogenerated by X3dToClassicVrmlEncoding.xslt and X3dToVrml97.xslt # https://www.web3d.org/x3d/content/X3dToClassicVrmlEncoding.xslt # https://www.web3d.org/x3d/content/X3dToVrml97.xslt # Transformation using XSLT processor: Saxonica # head META "title" "FiveInchGun.x3d" META "description" "5 inch 54 MK 42 gun from Cruiser model." META "creator" "James Harney, Josh Hansen" META "translator" "Xeena VRML importer, X3D-Edit 3.1, https://www.web3d.org/x3d/content/README.X3D-Edit.html" META "created" "1 August 2001" META "translated" "13 October 2002" META "modified" "20 October 2019" META "reference" "http://www.usni.org/Proceedings/Articles01/PROphotocontest4.html" META "reference" "https://www.fas.org/man/dod-101/sys/ship/weaps/mk-42.htm" META "identifier" "https://savage.nps.edu/Savage/ShipsMilitary/DD963SpruanceUnitedStates/FiveInchGun.x3d" META "generator" "X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit" META "generator" "Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html" META "license" "../../license.html" # [Scene] ========== ========== ========== WorldInfo { title "FiveInchGun.x3d" } Transform { children [ Transform { rotation 0.0 0.0 1.0 -0.06 children [ DEF FIVEINCHGUN Group { children [ DEF FRONTGUN Transform { rotation 1.0 0.05 0.0 -1.57 scale 1.3 1.3 1.3 children [ DEF FrontGunBottom1 Transform { rotation 1.0 0.0 0.0 1.57 translation 0.0 2.2 -2.2 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 shininess 0.3 } } geometry Cylinder { height 0.25 radius 4.0 } } ] } DEF FrontGunBottom2 Transform { rotation 1.0 0.0 0.0 1.57 translation 0.0 2.0 -2.0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 shininess 0.3 } } geometry Cylinder { height 0.5 radius 1.25 } } ] } DEF GunRotation Transform { children [ DEF GunBody Transform { scale 0.5 0.5 0.7 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 shininess 0.3 } } geometry Extrusion { creaseAngle 1.5 crossSection [ -6.0 0.0 -5.9 0.7 -5.7 1.2 -5.3 1.7 -5.0 2.1 -4.0 2.2 -3.0 2.3 -2.0 2.4 0.0 2.5 1.0 2.6 2.0 2.65 3.0 2.25 4.0 1.7 5.0 1.0 6.0 0.0 7.0 -2.5 -5.5 -2.5 -6.0 0.0 ] spine [ 0.0 1.0 0.0 0.0 7.0 0.0 ] } } ] } DEF Gun_barrel Transform { children [ DEF FrontGunFire Transform { rotation -0.3 0.0 1.0 1.57 translation 4.0 2.1 1.0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 shininess 0.3 } } geometry Cylinder { bottom FALSE height 10.0 radius 0.2 top FALSE } } ] } DEF BarrelSensor CylinderSensor { description "barrel sensor" maxAngle 0.4 minAngle -0.3 } ] } ] } ] } ] } ] } ] } ROUTE BarrelSensor.rotation_changed TO Gun_barrel.set_rotation