{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interactive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"http://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Figure09.4ConePlaneSensorConstrained.x3d"
          },
          {
            "@name":"creator",
            "@content":"Figure 9.4, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland"
          },
          {
            "@name":"reference",
            "@content":"http://www.wiley.com/legacy/compbooks/vrml2sbk/ch09/09fig04.htm"
          },
          {
            "@name":"transcriber",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"9 August 2000"
          },
          {
            "@name":"modified",
            "@content":"25 March 2012"
          },
          {
            "@name":"description",
            "@content":"A cone that translates within a limited range of the XZ plane when the viewer drags it. Also see Figure 9.3 for comparison."
          },
          {
            "@name":"reference",
            "@content":"Figure09.3ConePlaneSensor.x3d"
          },
          {
            "@name":"identifier",
            "@content":"http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09-SensingViewer/Figure09.4ConePlaneSensorConstrained.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"19 March 2017"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, http://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"warning",
            "@content":"An experimental version of X3D JSON encoding is used for this scene.  Status online at http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          {
            "#comment":"Dragging a Reluctant Cone"
          },
          { "Group":
            {
              "-children":[
                { "Transform":
                  {
                    "@rotation":[1,0,0,-1.57],
                    "-children":[
                      { "Transform":
                        {
                          "@DEF":"CUBE_TRANSFORM",
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cone":
                                    {
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0.5,0.5,0.5],
                                            "@emissiveColor":[0,0.5,0]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "PlaneSensor":
                        {
                          "@DEF":"MyPlaneSensor",
                          "@description":"Drag cone stays in XZ plane",
                          "@maxPosition":[2,2],
                          "@minPosition":[-2,-2]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          {
            "#comment":"Note that we are connecting a translation (Vec3F) output to a translation (Vec3F) input in this ROUTE."
          },
          { "ROUTE":
            {
              "@fromField":"translation_changed",
              "@fromNode":"MyPlaneSensor",
              "@toField":"set_translation",
              "@toNode":"CUBE_TRANSFORM"
            }
          }
        ]
    }
  }
}