{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.3",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.3.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"ProximitySensorNoOverlap.x3d"
          },
          {
            "@name":"description",
            "@content":"Example ProximitySensor regions"
          },
          {
            "@name":"creator",
            "@content":"Leonard Daly and Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"15 July 2006"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"ProximitySensorMultiple.x3d"
          },
          {
            "@name":"reference",
            "@content":"ProximitySensorOverlap.x3d"
          },
          {
            "@name":"reference",
            "@content":"ProximitySensorSingle.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://X3dGraphics.com"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dResources.html"
          },
          {
            "@name":"rights",
            "@content":"Copyright Don Brutzman and Leonard Daly 2007"
          },
          {
            "@name":"subject",
            "@content":"X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/ProximitySensorNoOverlap.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"17 April 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":"ProximitySensorNoOverlap.x3d"
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"WhereAmI",
              "@url":["../Chapter14Prototypes/WhereAmIPrototype.x3d#WhereAmI","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmIPrototype.x3d#WhereAmI","../Chapter14Prototypes/WhereAmIPrototype.wrl#WhereAmI","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmI.wrl#WhereAmI"]
            }
          },
          { "ProtoInstance":
            {
              "@name":"WhereAmI"
            }
          },
          { "Viewpoint":
            {
              "@description":"Book Viewpoint",
              "@orientation":[0,1,0,-0.06],
              "@position":[0.05,0,8.71]
            }
          },
          { "NavigationInfo":
            {
              "@avatarSize":[0.05,1.6,0.75],
              "@type":["WALK","ANY"]
            }
          },
          { "Background":
            {
              "@skyColor":[1,1,1]
            }
          },
          { "Collision":
            {
              "@enabled":false,
              "-children":[
                { "Transform":
                  {
                    "@DEF":"SensorGroup",
                    "-children":[
                      { "Viewpoint":
                        {
                          "@description":"Inside proximity box 1",
                          "@orientation":[0,1,0,-0.78],
                          "@position":[0,0,0.5]
                        }
                      },
                      { "ProximitySensor":
                        {
                          "@DEF":"HereIAm1",
                          "@size":[2,2,2]
                        }
                      },
                      { "Transform":
                        {
                          "@DEF":"SensorSize",
                          "-children":[
                            { "Shape":
                              {
                                "@DEF":"BoxOutline",
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@emissiveColor":[0.8,0.8,0.8]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "IndexedLineSet":
                                    {
                                      "@coordIndex":[0,1,2,3,0,-1,4,5,6,7,4,-1,0,4,-1,1,5,-1,2,6,-1,3,7,-1],
                                      "-coord":
                                        { "Coordinate":
                                          {
                                            "@point":[1,1,1,1,1,-1,1,-1,-1,1,-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,-1,1]
                                          }
                                        }
                                    }
                                  }
                              }
                            },
                            { "Shape":
                              {
                                "@DEF":"BoxSurface",
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1,0.5,0],
                                            "@transparency":0.8
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Box":
                                    {
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Collision":
            {
              "@enabled":false,
              "-children":[
                { "Transform":
                  {
                    "@rotation":[0.707,0.707,0,1],
                    "@translation":[3,1,2],
                    "-children":[
                      { "Viewpoint":
                        {
                          "@description":"Inside proximity box 2",
                          "@orientation":[0,1,0,-0.78],
                          "@position":[0,0,0.5]
                        }
                      },
                      { "ProximitySensor":
                        {
                          "@USE":"HereIAm1"
                        }
                      },
                      { "Transform":
                        {
                          "@USE":"SensorSize"
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Collision":
            {
              "@enabled":false,
              "-children":[
                { "Transform":
                  {
                    "@translation":[-1,0.5,-2.1],
                    "-children":[
                      { "Viewpoint":
                        {
                          "@description":"Inside proximity box 3",
                          "@orientation":[0,1,0,-0.78],
                          "@position":[0,0,0.5]
                        }
                      },
                      { "ProximitySensor":
                        {
                          "@USE":"HereIAm1"
                        }
                      },
                      { "Transform":
                        {
                          "@USE":"SensorSize"
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Collision":
            {
              "@enabled":false,
              "-children":[
                { "Transform":
                  {
                    "@translation":[-2.5,-1,1.5],
                    "-children":[
                      { "Viewpoint":
                        {
                          "@description":"Inside proximity box 4",
                          "@orientation":[0,1,0,-0.78],
                          "@position":[0,0,0.5]
                        }
                      },
                      { "ProximitySensor":
                        {
                          "@USE":"HereIAm1"
                        }
                      },
                      { "Transform":
                        {
                          "@USE":"SensorSize"
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Script":
            {
              "@DEF":"LocationReport",
              "@url":["ProximitySensorSingleScriptLocationReport.js","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/ProximitySensorSingleScriptLocationReport.js"],
              "field": [
                {
                  "@name":"position",
                  "@accessType":"inputOnly",
                  "@type":"SFVec3f"
                },
                {
                  "@name":"orientation",
                  "@accessType":"inputOnly",
                  "@type":"SFRotation"
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"HereIAm1",
              "@toField":"position",
              "@toNode":"LocationReport"
            }
          },
          { "ROUTE":
            {
              "@fromField":"orientation_changed",
              "@fromNode":"HereIAm1",
              "@toField":"orientation",
              "@toNode":"LocationReport"
            }
          }
        ]
    }
  }
}