{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"DDG51gun.x3d"
          },
          {
            "@name":"description",
            "@content":"5-inch 54 gun from Cruiser model on SAVAGE"
          },
          {
            "@name":"creator",
            "@content":"James Harney"
          },
          {
            "@name":"created",
            "@content":"1 August 2001"
          },
          {
            "@name":"modified",
            "@content":"7 April 2024"
          },
          {
            "@name":"contributor",
            "@content":"LT Josh Hansen"
          },
          {
            "@name":"modified",
            "@content":"7 April 2024"
          },
          {
            "@name":"reference",
            "@content":"http://www.usni.org/Proceedings/Articles01/PROphotocontest4.html"
          },
          {
            "@name":"reference",
            "@content":"https://www.fas.org/man/dod-101/sys/ship/weaps/mk-42.htm"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/DDG51gun.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"26 March 2026"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"DDG51gun.x3d"
            }
          },
          { "NavigationInfo":
            {
            }
          },
          { "Transform":
            {
              "-children":[
                { "Transform":
                  {
                    "@rotation":[0,0,1,-0.06],
                    "-children":[
                      { "Group":
                        {
                          "@DEF":"FIVEINCHGUN",
                          "-children":[
                            { "Transform":
                              {
                                "@DEF":"FRONTGUN",
                                "@rotation":[1,0.05,0,-1.57],
                                "@scale":[1.3,1.3,1.3],
                                "-children":[
                                  { "Transform":
                                    {
                                      "@DEF":"FrontGunBottom1",
                                      "@rotation":[1,0,0,1.57],
                                      "@translation":[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
                                                }
                                              }
                                          }
                                        }
                                      ]
                                    }
                                  },
                                  { "Transform":
                                    {
                                      "@DEF":"FrontGunBottom2",
                                      "@rotation":[1,0,0,1.57],
                                      "@translation":[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
                                                }
                                              }
                                          }
                                        }
                                      ]
                                    }
                                  },
                                  { "Transform":
                                    {
                                      "@DEF":"GunRotation",
                                      "-children":[
                                        { "Transform":
                                          {
                                            "@DEF":"GunBody",
                                            "@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,2.1,-4,2.2,-3,2.3,-2,2.4,0,2.5,1,2.6,2,2.65,3,2.25,4,1.7,5,1,6,0,7,-2.5,-5.5,-2.5,-6,0],
                                                        "@spine":[0,1,0,0,7,0]
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          }
                                        },
                                        { "Transform":
                                          {
                                            "@DEF":"Gun_barrel",
                                            "-children":[
                                              { "Transform":
                                                {
                                                  "@DEF":"FrontGunFire",
                                                  "@rotation":[-0.3,0,1,1.57],
                                                  "@translation":[4,2.1,1],
                                                  "-children":[
                                                    { "Shape":
                                                      {
                                                        "-appearance":
                                                          { "Appearance":
                                                            {
                                                              "-material":
                                                                { "Material":
                                                                  {
                                                                    "@diffuseColor":[0.7,0.7,0.7],
                                                                    "@shininess":0.3
                                                                  }
                                                                }
                                                            }
                                                          },
                                                        "-geometry":
                                                          { "Cylinder":
                                                            {
                                                              "@bottom":false,
                                                              "@height":10,
                                                              "@radius":0.2,
                                                              "@top":false
                                                            }
                                                          }
                                                      }
                                                    }
                                                  ]
                                                }
                                              },
                                              { "CylinderSensor":
                                                {
                                                  "@DEF":"BarrelSensor",
                                                  "@maxAngle":0.4,
                                                  "@minAngle":-0.3
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"rotation_changed",
              "@fromNode":"BarrelSensor",
              "@toField":"set_rotation",
              "@toNode":"Gun_barrel"
            }
          }
        ]
    }
  }
}