{ "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":"Mk48Torpedo.x3d"
          },
          {
            "@name":"description",
            "@content":"US Navy's Mk48 torpedo. Originally written in VRML by Haruna R. Isa."
          },
          {
            "@name":"created",
            "@content":"1 June 1997"
          },
          {
            "@name":"created",
            "@content":"29 April 2021"
          },
          {
            "@name":"creator",
            "@content":"Haruna R. Isa"
          },
          {
            "@name":"translator",
            "@content":"Jeffrey Weekley"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"Image",
            "@content":"diagram01Mk48TorpedoFAS.gif"
          },
          {
            "@name":"Image",
            "@content":"https://www.fas.org/man/dod-101/sys/ship/weaps/torpedo_comp.gif"
          },
          {
            "@name":"photo",
            "@content":"http://www.chinfo.navy.mil/navpalib/factfile/weapons/wep-torp.html"
          },
          {
            "@name":"photo",
            "@content":"Phot01Mk48TorpedoFASOrg.jpeg"
          },
          {
            "@name":"photo",
            "@content":"https://www.fas.org/man/dod-101/sys/ship/weaps/731-p05-s.jpg"
          },
          {
            "@name":"reference",
            "@content":"https://www.fas.org/man/dod-101/sys/ship/weaps/mk-48.htm"
          },
          {
            "@name":"slideset",
            "@content":"HmasFarncombMk48SinkexDestroyerEscort.pps"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Weapons/Torpedoes/Mk48Torpedo.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":"Mk48Torpedo.x3d"
            }
          },
          { "WorldInfo":
            {
              "@info":["Only unclassified open resources were used to create this model."]
            }
          },
          { "Group":
            {
              "-children":[
                { "Transform":
                  {
                    "@DEF":"torpedo",
                    "@rotation":[0.0,0.0,1.0,1.57079],
                    "@translation":[4.0,0.0,0.0],
                    "-children":[
                      { "Transform":
                        {
                          "@DEF":"torpedoband1",
                          "@translation":[0.0,1.465,0.0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@bottom":false,
                                      "@height":0.07,
                                      "@radius":0.267,
                                      "@top":false
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1.0,1.0,1.0]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@DEF":"torpedobody1",
                          "@translation":[0.0,2.1,0.0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@bottom":false,
                                      "@height":1.2,
                                      "@radius":0.267,
                                      "@top":false
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1.0,1.0,1.0]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@DEF":"torpedoband2",
                          "@translation":[0.0,2.735,0.0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@bottom":false,
                                      "@height":0.07,
                                      "@radius":0.267,
                                      "@top":false
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1.0,1.0,1.0]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@DEF":"torpedobody2",
                          "@translation":[0.0,3.37,0.0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@bottom":false,
                                      "@height":1.2,
                                      "@radius":0.267,
                                      "@top":false
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1.0,1.0,1.0]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@DEF":"torpedoband3",
                          "@translation":[0.0,4.005,0.0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@bottom":false,
                                      "@height":0.07,
                                      "@radius":0.267,
                                      "@top":false
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1.0,1.0,1.0]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@DEF":"torpedobody3",
                          "@translation":[0.0,4.638,0.0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@bottom":false,
                                      "@height":1.2,
                                      "@radius":0.267,
                                      "@top":false
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1.0,1.0,1.0]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@DEF":"torpedoband4",
                          "@translation":[0.0,3.8075,0.0],
                          "-children":[
                            { "Transform":
                              {
                                "@USE":"torpedoband1"
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@DEF":"torpedobody4",
                          "@translation":[0.0,3.8075,0.0],
                          "-children":[
                            { "Transform":
                              {
                                "@USE":"torpedobody1"
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@DEF":"torpedonose",
                          "@rotation":[1.0,0.0,0.0,3.1416],
                          "@translation":[0.0,1.4285,0.0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1.0,1.0,1.0]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Extrusion":
                                    {
                                      "@creaseAngle":1.785,
                                      "@crossSection":[0.267,0.000,0.231,-0.134,0.134,-0.231,0.0,-0.267,-0.134,-0.231,-0.231,-0.134,-0.267,0.000,-0.231,0.134,-0.134,0.231,0.0,0.267,0.134,0.231,0.231,0.134,0.267,0.0],
                                      "@scale":[1.00,1.00,0.95,0.95,0.88,0.88,0.76,0.76,0.48,0.48],
                                      "@spine":[0.00,0.00,0.00,0.00,0.10,0.00,0.00,0.20,0.00,0.00,0.30,0.00,0.00,0.40,0.00]
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Group":
                        {
                          "@DEF":"controlfins",
                          "-children":[
                            { "Transform":
                              {
                                "@rotation":[0,-1,0,5.27],
                                "@translation":[0.0,0.125,0.0],
                                "-children":[
                                  { "Transform":
                                    {
                                      "@DEF":"ControlFin1",
                                      "-children":[
                                        { "Transform":
                                          {
                                            "@translation":[0.19,7.81,0.0],
                                            "-children":[
                                              { "Shape":
                                                {
                                                  "-geometry":
                                                    { "Box":
                                                      {
                                                        "@size":[0.16,0.2,0.02]
                                                      }
                                                    },
                                                  "-appearance":
                                                    { "Appearance":
                                                      {
                                                        "-material":
                                                          { "Material":
                                                            {
                                                              "@diffuseColor":[0.0,1.0,0.0]
                                                            }
                                                          },
                                                        "-children":[
                                                          {
                                                            "#comment":"green"
                                                          }
                                                        ]
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    }
                                  },
                                  { "Transform":
                                    {
                                      "@DEF":"ControlFin2",
                                      "@rotation":[0,1,0,3.17],
                                      "-children":[
                                        { "Transform":
                                          {
                                            "@USE":"ControlFin1"
                                          }
                                        }
                                      ]
                                    }
                                  },
                                  { "Transform":
                                    {
                                      "@DEF":"ControlFin3",
                                      "@rotation":[0,1,0,1.57],
                                      "-children":[
                                        { "Transform":
                                          {
                                            "@USE":"ControlFin1"
                                          }
                                        }
                                      ]
                                    }
                                  },
                                  { "Transform":
                                    {
                                      "@DEF":"ControlFin4",
                                      "@rotation":[0.0,1.0,0.0,4.74],
                                      "-children":[
                                        { "Transform":
                                          {
                                            "@USE":"ControlFin1"
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      { "Group":
                        {
                          "@DEF":"stabilzerfins",
                          "-children":[
                            { "Transform":
                              {
                                "@translation":[0.0,8.15,0.0],
                                "-children":[
                                  { "Transform":
                                    {
                                      "@DEF":"stabilizerfin1",
                                      "@translation":[0.19,-0.5,0.0],
                                      "-children":[
                                        { "Shape":
                                          {
                                            "-geometry":
                                              { "Box":
                                                {
                                                  "@size":[0.08,0.75,0.02]
                                                }
                                              },
                                            "-appearance":
                                              { "Appearance":
                                                {
                                                  "-material":
                                                    { "Material":
                                                      {
                                                        "@diffuseColor":[0.0,0.0,0.8]
                                                      }
                                                    }
                                                }
                                              }
                                          }
                                        }
                                      ]
                                    }
                                  },
                                  { "Transform":
                                    {
                                      "@DEF":"stabilizerfin2",
                                      "@rotation":[0.0,1.0,0.0,1.57],
                                      "@translation":[0.0,-0.5,0.19],
                                      "-children":[
                                        { "Shape":
                                          {
                                            "-geometry":
                                              { "Box":
                                                {
                                                  "@size":[0.08,0.75,0.02]
                                                }
                                              },
                                            "-appearance":
                                              { "Appearance":
                                                {
                                                  "-material":
                                                    { "Material":
                                                      {
                                                        "@diffuseColor":[0.5,1.0,0.5]
                                                      }
                                                    },
                                                  "-children":[
                                                    {
                                                      "#comment":"light green"
                                                    }
                                                  ]
                                                }
                                              }
                                          }
                                        }
                                      ]
                                    }
                                  },
                                  { "Transform":
                                    {
                                      "@DEF":"stabilizerfin3",
                                      "@rotation":[0.0,1.0,0.0,3.1416],
                                      "-children":[
                                        { "Transform":
                                          {
                                            "@USE":"stabilizerfin1"
                                          }
                                        }
                                      ]
                                    }
                                  },
                                  { "Transform":
                                    {
                                      "@DEF":"stabilizerfin4",
                                      "@rotation":[0.0,1.0,0.0,3.1416],
                                      "-children":[
                                        { "Transform":
                                          {
                                            "@USE":"stabilizerfin2"
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      { "Group":
                        {
                          "@DEF":"TailSection",
                          "-children":[
                            { "Transform":
                              {
                                "@DEF":"torpedotail",
                                "@rotation":[1.0,0.0,0.0,3.1416],
                                "@translation":[0.0,7.9375,0.0],
                                "-children":[
                                  { "Shape":
                                    {
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "-material":
                                              { "Material":
                                                {
                                                  "@diffuseColor":[1.0,1.0,1.0]
                                                }
                                              }
                                          }
                                        },
                                      "-geometry":
                                        { "Extrusion":
                                          {
                                            "@creaseAngle":2.0,
                                            "@crossSection":[0.267,0.000,0.231,-0.134,0.134,-0.231,0.0,-0.267,-0.134,-0.231,-0.231,-0.134,-0.267,0.000,-0.231,0.134,-0.134,0.231,0.0,0.267,0.134,0.231,0.231,0.134,0.267,0.0],
                                            "@endCap":false,
                                            "@scale":[0.342,0.342,0.500,0.500,0.643,0.643,0.766,0.766,0.866,0.866,0.940,0.940,0.985,0.985,1.0,1.0],
                                            "@spine":[0.0,0.0,0.000,0.0,0.114,0.000,0.0,0.266,0.000,0.0,0.453,0.000,0.0,0.670,0.000,0.0,0.910,0.000,0.0,1.166,0.000,0.0,1.431,0.0]
                                          }
                                        }
                                    }
                                  },
                                  { "Shape":
                                    {
                                      "@DEF":"torpedoshroud",
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "-material":
                                              { "Material":
                                                {
                                                  "@diffuseColor":[1.0,1.0,1.0]
                                                }
                                              }
                                          }
                                        },
                                      "-geometry":
                                        { "Extrusion":
                                          {
                                            "@creaseAngle":0.785,
                                            "@crossSection":[0.00,0.00,-0.02,0.00,-0.02,-0.10,-0.06,-0.20,-0.04,-0.20,0.00,-0.10,0.00,0.00],
                                            "@solid":false,
                                            "@spine":[0.20,0.00,0.00,0.19,0.00,-0.07,0.15,0.00,-0.13,0.10,0.00,-0.17,0.03,0.00,-0.20,-0.03,0.00,-0.20,-0.10,0.00,-0.17,-0.15,0.00,-0.13,-0.19,0.00,-0.07,-0.20,0.00,0.00,-0.19,0.00,0.07,-0.15,0.00,0.13,-0.10,0.00,0.17,-0.03,0.00,0.20,0.03,0.00,0.20,0.10,0.00,0.17,0.15,0.00,0.13,0.19,0.00,0.07,0.20,0.00,0.00]
                                          }
                                        }
                                    }
                                  },
                                  { "Group":
                                    {
                                      "@DEF":"torpedostator",
                                      "-children":[
                                        { "Transform":
                                          {
                                            "@DEF":"propeller",
                                            "@translation":[0.0,-0.15,0.0],
                                            "-children":[
                                              { "Group":
                                                {
                                                  "@DEF":"statorblade1",
                                                  "-children":[
                                                    { "Transform":
                                                      {
                                                        "@DEF":"torpedostatorblade1",
                                                        "-children":[
                                                          { "Transform":
                                                            {
                                                              "@rotation":[-1.0,0.0,0.0,3.43],
                                                              "@translation":[0.075,0.0,0.0],
                                                              "-children":[
                                                                { "Shape":
                                                                  {
                                                                    "-geometry":
                                                                      { "Box":
                                                                        {
                                                                          "@size":[0.125,0.09,0.015]
                                                                        }
                                                                      },
                                                                    "-appearance":
                                                                      { "Appearance":
                                                                        {
                                                                          "-material":
                                                                            { "Material":
                                                                              {
                                                                                "@diffuseColor":[1.0,1.0,1.0]
                                                                              }
                                                                            }
                                                                        }
                                                                      }
                                                                  }
                                                                }
                                                              ]
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    },
                                                    { "Transform":
                                                      {
                                                        "@DEF":"torpedostatorblade1A",
                                                        "-children":[
                                                          { "Transform":
                                                            {
                                                              "@rotation":[1,0,0,3.43],
                                                              "@translation":[-0.075,0.0,0.0],
                                                              "-children":[
                                                                { "Shape":
                                                                  {
                                                                    "-geometry":
                                                                      { "Box":
                                                                        {
                                                                          "@size":[0.125,0.09,0.015]
                                                                        }
                                                                      },
                                                                    "-appearance":
                                                                      { "Appearance":
                                                                        {
                                                                          "-material":
                                                                            { "Material":
                                                                              {
                                                                                "@diffuseColor":[1.0,1.0,1.0]
                                                                              }
                                                                            }
                                                                        }
                                                                      }
                                                                  }
                                                                }
                                                              ]
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  ]
                                                }
                                              },
                                              { "Group":
                                                {
                                                  "@DEF":"statorblade2",
                                                  "-children":[
                                                    { "Transform":
                                                      {
                                                        "@rotation":[0,1,0,2.04],
                                                        "-children":[
                                                          { "Group":
                                                            {
                                                              "@USE":"statorblade1"
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  ]
                                                }
                                              },
                                              { "Group":
                                                {
                                                  "@DEF":"statorblade3",
                                                  "-children":[
                                                    { "Transform":
                                                      {
                                                        "@rotation":[0,-1,0,5.27],
                                                        "-children":[
                                                          { "Group":
                                                            {
                                                              "@USE":"statorblade1"
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  ]
                                                }
                                              },
                                              { "Transform":
                                                {
                                                  "@DEF":"statorbladeshaft",
                                                  "@translation":[0.0,0,0.0],
                                                  "-children":[
                                                    { "Shape":
                                                      {
                                                        "-appearance":
                                                          { "Appearance":
                                                            {
                                                              "-material":
                                                                { "Material":
                                                                  {
                                                                    "@diffuseColor":[0.0,0.0,0.5]
                                                                  }
                                                                }
                                                            }
                                                          },
                                                        "-geometry":
                                                          { "Cylinder":
                                                            {
                                                              "@height":0.1,
                                                              "@radius":0.05
                                                            }
                                                          }
                                                      }
                                                    }
                                                  ]
                                                }
                                              },
                                              { "Transform":
                                                {
                                                  "@DEF":"statorcrankshaft",
                                                  "@translation":[0.0,0.1,0.0],
                                                  "-children":[
                                                    { "Shape":
                                                      {
                                                        "-geometry":
                                                          { "Cylinder":
                                                            {
                                                              "@height":0.125,
                                                              "@radius":0.025
                                                            }
                                                          },
                                                        "-appearance":
                                                          { "Appearance":
                                                            {
                                                              "-material":
                                                                { "Material":
                                                                  {
                                                                    "@diffuseColor":[0.0,0.0,0.75]
                                                                  }
                                                                }
                                                            }
                                                          }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          }
                                        },
                                        { "OrientationInterpolator":
                                          {
                                            "@DEF":"PropSpin",
                                            "@key":[0.0,0.5,1.0],
                                            "@keyValue":[0.0,1.0,0.0,0.00,0.0,1.0,0.0,3.14,0.0,1.0,0.0,6.28]
                                          }
                                        },
                                        { "TimeSensor":
                                          {
                                            "@DEF":"Clock",
                                            "@cycleInterval":0.5,
                                            "@loop":true
                                          }
                                        },
                                        {
                                          "#comment":"Spins the propellor and stator once every 4 seconds"
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"Clock",
              "@toField":"set_fraction",
              "@toNode":"PropSpin"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"PropSpin",
              "@toField":"rotation",
              "@toNode":"propeller"
            }
          }
        ]
    }
  }
}