DistanceJoint:getAnchors

Edit

Returns the anchor points of the DistanceJoint.

x1, y1, z1, x2, y2, z2 = DistanceJoint:getAnchors()

Arguments

None

Returns

NameTypeDescription
x1number The x coordinate of the first anchor point, in world coordinates.
y1number The y coordinate of the first anchor point, in world coordinates.
z1number The z coordinate of the first anchor point, in world coordinates.
x2number The x coordinate of the second anchor point, in world coordinates.
y2number The y coordinate of the second anchor point, in world coordinates.
z2number The z coordinate of the second anchor point, in world coordinates.

See also