| Name | Type | Description |
|---|---|---|
| body1 | PhysicsBody | The source physics body. |
| body2 | PhysicsBody | The target physics body to constrain to. |
| origin | Vector3 | The origin of the hinge in world coordinates. The 2 bodies will rotate around this point. |
| Type | Description |
|---|---|
| BallSocketJoint | The created ball socket joint. |