{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.1",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.1.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"TouchSensorIsOverEventJava.x3d"
          },
          {
            "@name":"description",
            "@content":"This example demonstrates a scripted response to a TouchSensor isOver event by changing the color of a Box from blue to red"
          },
          {
            "@name":"creator",
            "@content":"X3D Specification"
          },
          {
            "@name":"translated",
            "@content":"23 February 2005"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"subject",
            "@content":"X3D Java Script Authoring Interface (SAI)"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/ScriptConformance/TouchSensorIsOverEventJava.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/specifications/ISO-IEC-19777-2-X3DLanguageBindings-Java/Part2/examples.html#TouchSensorIsOverEvent"
          },
          {
            "@name":"generator",
            "@content":"Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"20 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":"TouchSensorIsOverEventJava.x3d"
            }
          },
          { "Group":
            {
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@DEF":"MAT",
                                "@diffuseColor":[0,0,1]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "Box":
                        {
                        }
                      }
                  }
                },
                { "TouchSensor":
                  {
                    "@DEF":"TS"
                  }
                }
              ]
            }
          },
          { "Script":
            {
              "@DEF":"SC",
              "@url":["SAIExample1.class","https://www.web3d.org/x3d/content/examples/Basic/ScriptConformance/SAIExample1.class"],
              "field": [
                {
                  "@name":"isOver",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"diffuseColor_changed",
                  "@accessType":"outputOnly",
                  "@type":"SFColor"
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"isOver",
              "@fromNode":"TS",
              "@toField":"isOver",
              "@toNode":"SC"
            }
          },
          { "ROUTE":
            {
              "@fromField":"diffuseColor_changed",
              "@fromNode":"SC",
              "@toField":"set_diffuseColor",
              "@toNode":"MAT"
            }
          }
        ]
    }
  }
}