{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.2",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.2.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "component": [
          {
            "@name":"RigidBodyPhysics",
            "@level":2
          }
        ],
        "meta": [
          {
            "@name":"title",
            "@content":"BallBounceSimple.x3d"
          },
          {
            "@name":"description",
            "@content":"Example scene for RigidBodyPhysics component"
          },
          {
            "@name":"creator",
            "@content":"Alan Hudson and Justin Couch"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"1 January 2008"
          },
          {
            "@name":"reference",
            "@content":"originals/ball_bounce_simple.x3dv"
          },
          {
            "@name":"translated",
            "@content":"26 December 2008"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"http://www.xj3d.org/extensions/index.html#Physics"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/specifications/ISO-IEC-FDIS-19775-1.2-X3D-AbstractSpecification/Part01/components/rigid_physics.html"
          },
          {
            "@name":"warning",
            "@content":"under development"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounceSimple.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"generator",
            "@content":"Xj3D converter, http://www.xj3d.org"
          },
          {
            "@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":"BallBounceSimple.x3d"
            }
          },
          { "Viewpoint":
            {
              "@position":[0.0,0.0,4.0]
            }
          },
          { "Group":
            {
              "-children":[
                { "CollidableShape":
                  {
                    "@DEF":"BALL-GEOM",
                    "-shape":
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@emissiveColor":[1.0,0.0,0.0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Sphere":
                              {
                                "@radius":0.1
                              }
                            }
                        }
                      }
                  }
                },
                { "CollidableShape":
                  {
                    "@DEF":"GROUND-GEOM",
                    "@translation":[0.0,-0.5,0.0],
                    "-shape":
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@emissiveColor":[0.0,1.0,0.0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[20.0,0.1,20.0]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "RigidBodyCollection":
            {
              "@DEF":"BODY-COLLECTION",
              "-bodies":[
                { "RigidBody":
                  {
                    "@DEF":"BODY-1",
                    "@position":[0.0,2.0,0.0],
                    "-geometry":
                      { "CollidableShape":
                        {
                          "@USE":"BALL-GEOM"
                        }
                      }
                  }
                }
              ]
            }
          },
          { "CollisionSensor":
            {
              "@DEF":"COLLISION-OUTPUT",
              "-collider":
                { "CollisionCollection":
                  {
                    "@DEF":"COLLISION-GROUP",
                    "@bounce":1.0,
                    "@minBounceSpeed":1.0,
                    "-collidables":[
                      { "CollidableShape":
                        {
                          "@USE":"BALL-GEOM"
                        }
                      },
                      { "CollidableShape":
                        {
                          "@USE":"GROUND-GEOM"
                        }
                      }
                    ]
                  }
                }
            }
          },
          { "ROUTE":
            {
              "@fromField":"contacts",
              "@fromNode":"COLLISION-OUTPUT",
              "@toField":"set_contacts",
              "@toNode":"BODY-COLLECTION"
            }
          }
        ]
    }
  }
}