BallJoint:getAnchors
EditReturns the anchor points of the BallJoint, in world coordinates. The first point is the anchor on the first collider, and the second point is on the second collider. The joint tries to keep these points the same, but they may be different if the joint is forced apart by some other means.
x1, y1, z1, x2, y2, z2 = BallJoint:getAnchors()
Arguments
None
Returns
Name | Type | Description |
x1 | number | The x coordinate of the first anchor point, in world coordinates. |
y1 | number | The y coordinate of the first anchor point, in world coordinates. |
z1 | number | The z coordinate of the first anchor point, in world coordinates. |
x2 | number | The x coordinate of the second anchor point, in world coordinates. |
y2 | number | The y coordinate of the second anchor point, in world coordinates. |
z2 | number | The z coordinate of the second anchor point, in world coordinates. |