{ "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":"LineBoatPrototype.x3d"
          },
          {
            "@name":"creator",
            "@content":"James Harney"
          },
          {
            "@name":"created",
            "@content":"13 December 2001"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"description",
            "@content":"Simple model of line handling boat used to moor the USS COLE in Aden Harbor, Yemen in October 2000. Aligned down positive x axis as required for Savage vehicle models."
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/TerroristBoatControlPanel.java"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/TerroristBoatActionInterpreter.java"
          },
          {
            "@name":"reference",
            "@content":"http://www.foia.navy.mil/usscole/index.html"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/LineBoatPrototype.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, 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":"LineBoatPrototype.x3d"
            }
          },
          { "ProtoDeclare":
            {
              "@name":"LineBoat",
              "ProtoInterface": {
                  "field": [
                    {
                      "@name":"startExplosion",
                      "@accessType":"inputOnly",
                      "@type":"SFTime"
                    }
                  ]
              },
              "ProtoBody": {
                  "-children":[
                    { "Group":
                      {
                        "-children":[
                          { "Transform":
                            {
                              "-children":[
                                { "Viewpoint":
                                  {
                                    "@DEF":"STBD",
                                    "@description":"Line Boat stbd View",
                                    "@jump":false,
                                    "@orientation":[1,0,0,-0.2],
                                    "@position":[5,10,35]
                                  }
                                },
                                { "Viewpoint":
                                  {
                                    "@DEF":"REAR",
                                    "@description":"Line Boat Rear View",
                                    "@jump":false,
                                    "@orientation":[0,1,0,-1.57],
                                    "@position":[-30,8,0]
                                  }
                                },
                                { "Viewpoint":
                                  {
                                    "@description":"Line Boat Port View",
                                    "@jump":false,
                                    "@orientation":[0,1,0,3.14],
                                    "@position":[5,8,-30]
                                  }
                                },
                                { "Viewpoint":
                                  {
                                    "@DEF":"FRONT",
                                    "@description":"Line Boat Front View",
                                    "@jump":false,
                                    "@orientation":[0,1,0,1.57],
                                    "@position":[32,8,0]
                                  }
                                }
                              ]
                            }
                          },
                          { "PositionInterpolator":
                            {
                              "@DEF":"BoatPosit",
                              "@key":[0.325,0.9,1],
                              "@keyValue":[0,0,0,0,-15,0,0,-0.5,0]
                            }
                          },
                          { "TimeSensor":
                            {
                              "@DEF":"BoatPositClock",
                              "@cycleInterval":3.6,
                              "IS": {
                                  "connect": [
                                    {
                                      "@nodeField":"startTime",
                                      "@protoField":"startExplosion"
                                    }
                                  ]
                              }
                            }
                          },
                          { "TimeSensor":
                            {
                              "@DEF":"DeadBoat",
                              "@cycleInterval":5
                            }
                          },
                          { "OrientationInterpolator":
                            {
                              "@DEF":"DeadOrient",
                              "@key":[0.4,0.9,1],
                              "@keyValue":[1,0,0,0.00,1,0,0,3.14,1,0,0,3.14]
                            }
                          },
                          { "Transform":
                            {
                              "@DEF":"BoatTransform",
                              "-children":[
                                { "Transform":
                                  {
                                    "@scale":[1.2,1.2,1.2],
                                    "-children":[
                                      { "Shape":
                                        {
                                          "-geometry":
                                            { "Extrusion":
                                              {
                                                "@creaseAngle":1.57,
                                                "@crossSection":[0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00],
                                                "@orientation":[0,1,0,0,0,1,0,0,0,0,1,-0.5],
                                                "@scale":[1,1,1,1,1,0.1],
                                                "@solid":false,
                                                "@spine":[0,0,0,7.8842,0,0,10.7,0.25,0]
                                              }
                                            },
                                          "-appearance":
                                            { "Appearance":
                                              {
                                                "-material":
                                                  { "Material":
                                                    {
                                                      "@diffuseColor":[0.9,0.9,0.9],
                                                      "@shininess":0.1
                                                    }
                                                  },
                                                "-texture":
                                                  { "ImageTexture":
                                                    {
                                                      "@DEF":"TEXTURE",
                                                      "@url":["../../Scenarios/UssColeTerroristAttack/BoatTexture.jpg","BoatTexture.jpg","https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/BoatTexture.jpg"]
                                                    }
                                                  }
                                              }
                                            }
                                        }
                                      },
                                      { "Shape":
                                        {
                                          "-geometry":
                                            { "Extrusion":
                                              {
                                                "@creaseAngle":1.57,
                                                "@crossSection":[0.10,0.96,0.10,-0.96],
                                                "@scale":[1,1,1,1,1,0.1],
                                                "@solid":false,
                                                "@spine":[0.1,0,0,7.8842,0,0,10.6,0.25,0]
                                              }
                                            },
                                          "-appearance":
                                            { "Appearance":
                                              {
                                                "-material":
                                                  { "Material":
                                                    {
                                                      "@diffuseColor":[1,1,1]
                                                    }
                                                  },
                                                "-texture":
                                                  { "ImageTexture":
                                                    {
                                                      "@USE":"TEXTURE"
                                                    }
                                                  }
                                              }
                                            }
                                        }
                                      }
                                    ]
                                  }
                                },
                                { "Transform":
                                  {
                                    "@translation":[0,-0.2,0],
                                    "-children":[
                                      { "Shape":
                                        {
                                          "-geometry":
                                            { "IndexedFaceSet":
                                              {
                                                "@coordIndex":[0,2,6,4,0,-1,1,3,7,5,1,-1,0,1,5,4,0,-1,2,3,7,6,2,-1,4,6,7,5,4,-1],
                                                "@solid":false,
                                                "-coord":
                                                  { "Coordinate":
                                                    {
                                                      "@point":[2,0,0.5,3,0,0.5,2,0,-0.5,3,0,-0.5,2,1,0.5,3,1.5,0.5,2,1,-0.5,3,1.5,-0.5]
                                                    }
                                                  }
                                              }
                                            },
                                          "-appearance":
                                            { "Appearance":
                                              {
                                                "-material":
                                                  { "Material":
                                                    {
                                                      "@diffuseColor":[0.9,0.9,0.9]
                                                    }
                                                  }
                                              }
                                            }
                                        }
                                      }
                                    ]
                                  }
                                }
                              ]
                            }
                          },
                          { "ROUTE":
                            {
                              "@fromField":"fraction_changed",
                              "@fromNode":"BoatPositClock",
                              "@toField":"set_fraction",
                              "@toNode":"BoatPosit"
                            }
                          },
                          { "ROUTE":
                            {
                              "@fromField":"value_changed",
                              "@fromNode":"BoatPosit",
                              "@toField":"set_translation",
                              "@toNode":"BoatTransform"
                            }
                          },
                          { "ROUTE":
                            {
                              "@fromField":"startTime",
                              "@fromNode":"BoatPositClock",
                              "@toField":"set_startTime",
                              "@toNode":"DeadBoat"
                            }
                          },
                          { "ROUTE":
                            {
                              "@fromField":"fraction_changed",
                              "@fromNode":"DeadBoat",
                              "@toField":"set_fraction",
                              "@toNode":"DeadOrient"
                            }
                          },
                          { "ROUTE":
                            {
                              "@fromField":"value_changed",
                              "@fromNode":"DeadOrient",
                              "@toField":"set_rotation",
                              "@toNode":"BoatTransform"
                            }
                          }
                        ]
                      }
                    }
                  ]
              }
            }
          },
          { "NavigationInfo":
            {
              "@speed":10,
              "@type":["EXAMINE","FLY","ANY"],
              "@visibilityLimit":7000
            }
          },
          { "Background":
            {
              "@groundAngle":[1.309,1.570796],
              "@groundColor":[0.1,0.1,0,0.4,0.25,0.2,0.6,0.6,0.6],
              "@skyAngle":[1.309,1.571],
              "@skyColor":[0,0.2,0.7,0,0.5,1,1,1,1]
            }
          },
          { "ProtoInstance":
            {
              "@name":"LineBoat",
              "@DEF":"Boat"
            }
          },
          { "Viewpoint":
            {
              "@description":"Line Boat View",
              "@jump":false,
              "@orientation":[1,0,0,-0.2],
              "@position":[0,10,35]
            }
          },
          { "TouchSensor":
            {
              "@DEF":"Touch",
              "@description":"Flips boat over on touch"
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"Touch",
              "@toField":"startExplosion",
              "@toNode":"Boat"
            }
          }
        ]
    }
  }
}