Method CreateBallAndSocket
CreateBallAndSocket(float3, float3)
Create a BallAndSocket joint.
Declaration
public static PhysicsJoint CreateBallAndSocket(float3 anchorA, float3 anchorB)
Parameters
| Type | Name | Description |
|---|---|---|
| float3 | anchorA | Specifies the anchor point in the space of body A. |
| float3 | anchorB | Specifies the target point in the space of body B. |
Returns
| Type | Description |
|---|---|
| PhysicsJoint | The new ball and socket joint. |