{ "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":"SenseDecideActEngagePrototype.x3d"
          },
          {
            "@name":"description",
            "@content":"Sense-Decide-Act Prototype utilized for Anti-Terrorism/Force Protection Simulation."
          },
          {
            "@name":"creator",
            "@content":"James Harney"
          },
          {
            "@name":"created",
            "@content":"6 February 2002"
          },
          {
            "@name":"modified",
            "@content":"1 October 2023"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Scenarios/LimitedObjectiveExperimentPortHueneme/SenseDecideActEngagePrototype.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":"SenseDecideActEngagePrototype.x3d"
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"RHIB",
              "@url":["../../Scenarios/UssColeTerroristAttack/RHIBPrototype.wrl#RHIB","RHIBPrototype.wrl#RHIB","RHIBPrototype.x3d#RHIB","https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/RHIBPrototype.wrl#RHIB","https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/RHIBBoatPrototype.x3d#RHIB"],
              "field": [
                {
                  "@name":"startExplosion",
                  "@accessType":"inputOnly",
                  "@type":"SFTime"
                }
              ]
            }
          },
          { "ProtoDeclare":
            {
              "@name":"SenseDecideActEngagePrototype",
              "ProtoInterface": {
                  "field": [
                    {
                      "@name":"engagementPosition",
                      "@accessType":"inputOutput",
                      "@type":"SFVec3f"
                    },
                    {
                      "@name":"engagementTextPosition",
                      "@accessType":"inputOutput",
                      "@type":"SFVec3f"
                    }
                  ]
              },
              "ProtoBody": {
                  "-children":[
                    { "Group":
                      {
                        "-children":[
                          { "NavigationInfo":
                            {
                              "@type":["EXAMINE","FLY","ANY"],
                              "@visibilityLimit":24000
                            }
                          },
                          { "Background":
                            {
                              "@groundAngle":[1.309],
                              "@groundColor":[0.2,0.2,0.8,1.0,1.0,1.0],
                              "@skyAngle":[1.309,1.571],
                              "@skyColor":[0.0,0.2,0.7,0.0,0.5,1.0,1.0,1.0,1.0]
                            }
                          },
                          { "Transform":
                            {
                              "@DEF":"OverallTransform",
                              "-children":[
                                { "Transform":
                                  {
                                    "-children":[
                                      { "Transform":
                                        {
                                          "@DEF":"EngageSphereTransform",
                                          "IS": {
                                              "connect": [
                                                {
                                                  "@nodeField":"scale",
                                                  "@protoField":"engagementPosition"
                                                }
                                              ]
                                          },
                                          "-children":[
                                            { "Shape":
                                              {
                                                "-appearance":
                                                  { "Appearance":
                                                    {
                                                      "-material":
                                                        { "Material":
                                                          {
                                                            "@diffuseColor":[1,0,0],
                                                            "@transparency":0.75
                                                          }
                                                        }
                                                    }
                                                  },
                                                "-geometry":
                                                  { "Sphere":
                                                    {
                                                      "@radius":0.5
                                                    }
                                                  }
                                              }
                                            }
                                          ]
                                        }
                                      }
                                    ]
                                  }
                                },
                                { "Transform":
                                  {
                                    "@DEF":"EngageTextTransform",
                                    "IS": {
                                        "connect": [
                                          {
                                            "@nodeField":"translation",
                                            "@protoField":"engagementTextPosition"
                                          }
                                        ]
                                    },
                                    "-children":[
                                      { "Shape":
                                        {
                                          "-appearance":
                                            { "Appearance":
                                              {
                                                "-material":
                                                  { "Material":
                                                    {
                                                      "@diffuseColor":[1,0,0]
                                                    }
                                                  }
                                              }
                                            },
                                          "-geometry":
                                            { "Text":
                                              {
                                                "@DEF":"EngagementRangeValue",
                                                "@string":["Engagement Range"],
                                                "-fontStyle":
                                                  { "FontStyle":
                                                    {
                                                      "@justify":["MIDDLE","MIDDLE"],
                                                      "@size":3,
                                                      "@style":"BOLD"
                                                    }
                                                  }
                                              }
                                            }
                                        }
                                      }
                                    ]
                                  }
                                }
                              ]
                            }
                          }
                        ]
                      }
                    }
                  ]
              }
            }
          },
          {
            "#comment":"End of Proto definition, now we're just showing how to use it."
          },
          { "Transform":
            {
              "-children":[
                { "Viewpoint":
                  {
                    "@description":"Initial View point",
                    "@position":[0,100,500]
                  }
                },
                { "Transform":
                  {
                    "@translation":[0,2,0],
                    "-children":[
                      { "ProtoInstance":
                        {
                          "@name":"RHIB",
                          "@DEF":"ColeRhib1"
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[1,-0.5,0],
                          "-children":[
                            { "Inline":
                              {
                                "@url":["../../../HumanoidAnimation/NancyStandShootRifleM24.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Legacy/NancyStandShootRifleM24.wrl"]
                              }
                            },
                            { "Transform":
                              {
                                "@translation":[0,1.5,0],
                                "-children":[
                                  { "ProtoInstance":
                                    {
                                      "@name":"SenseDecideActEngagePrototype",
                                      "@DEF":"myRanges",
                                      "fieldValue": [
                                        {
                                          "@name":"engagementPosition",
                                          "@value":[400,400,400]
                                        },
                                        {
                                          "@name":"engagementTextPosition",
                                          "@value":[0.0,100,400]
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"PlaneTransform",
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                          "@size":[1000,2,1000]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0,0,0.5],
                                "@emissiveColor":[0,0,0.5]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          }
        ]
    }
  }
}