DistanceJoint:setAnchors

Sets the anchor points of the DistanceJoint.

DistanceJoint:setAnchors(x1, y1, z1, x2, y2, z2)

Arguments

NameTypeDescription
x1numberThe x coordinate of the first anchor point, in world coordinates.
y1numberThe y coordinate of the first anchor point, in world coordinates.
z1numberThe z coordinate of the first anchor point, in world coordinates.
x2numberThe x coordinate of the second anchor point, in world coordinates.
y2numberThe y coordinate of the second anchor point, in world coordinates.
z2numberThe z coordinate of the second anchor point, in world coordinates.

Returns

Nothing

See also