{ "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":"BallJointExample.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":"translated",
            "@content":"26 December 2008"
          },
          {
            "@name":"modified",
            "@content":"17 June 2020"
          },
          {
            "@name":"reference",
            "@content":"http://www.xj3d.org/extensions/index.html#Physics"
          },
          {
            "@name":"reference",
            "@content":"originals/ball_joint.x3dv"
          },
          {
            "@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/BallJointExample.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":"BallJointExample.x3d"
            }
          },
          { "Viewpoint":
            {
              "@description":"default view, rotate to examine object",
              "@position":[0.0,0.0,4.0]
            }
          },
          { "Group":
            {
              "-children":[
                { "CollidableShape":
                  {
                    "@DEF":"BOX-GEOM-1",
                    "-shape":
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@emissiveColor":[1.0,0.0,0.0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[0.3,0.02,0.02]
                              }
                            }
                        }
                      }
                  }
                },
                { "CollidableShape":
                  {
                    "@DEF":"BOX-GEOM-2",
                    "-shape":
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@emissiveColor":[0.0,0.0,1.0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[0.3,0.02,0.02]
                              }
                            }
                        }
                      }
                  }
                },
                { "CollidableShape":
                  {
                    "@DEF":"BOX-GEOM-3",
                    "-shape":
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@emissiveColor":[0.0,1.0,0.0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[0.3,0.02,0.02]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "RigidBodyCollection":
            {
              "-bodies":[
                { "RigidBody":
                  {
                    "@DEF":"BODY-1",
                    "@mass":10000.0,
                    "@useGlobalGravity":false,
                    "-geometry":
                      { "CollidableShape":
                        {
                          "@USE":"BOX-GEOM-1"
                        }
                      }
                  }
                },
                { "RigidBody":
                  {
                    "@DEF":"BODY-2",
                    "@angularDampingFactor":0,
                    "@position":[0.3,0.0,0.0],
                    "-geometry":
                      { "CollidableShape":
                        {
                          "@USE":"BOX-GEOM-2"
                        }
                      }
                  }
                },
                { "RigidBody":
                  {
                    "@DEF":"BODY-3",
                    "@angularDampingFactor":0,
                    "@mass":0.1,
                    "@orientation":[0.0,1.0,0.0,0.7071],
                    "@position":[0.52,0.0,0.2],
                    "-geometry":
                      { "CollidableShape":
                        {
                          "@USE":"BOX-GEOM-3"
                        }
                      }
                  }
                }
              ],
              "-joints":[
                { "BallJoint":
                  {
                    "@anchorPoint":[0.15,0.0,0.0],
                    "-body1":
                      { "RigidBody":
                        {
                          "@USE":"BODY-1"
                        }
                      },
                    "-body2":
                      { "RigidBody":
                        {
                          "@USE":"BODY-2"
                        }
                      }
                  }
                },
                { "BallJoint":
                  {
                    "@anchorPoint":[0.4,0.0,0.1],
                    "-body1":
                      { "RigidBody":
                        {
                          "@USE":"BODY-2"
                        }
                      },
                    "-body2":
                      { "RigidBody":
                        {
                          "@USE":"BODY-3"
                        }
                      }
                  }
                }
              ]
            }
          }
        ]
    }
  }
}