DistanceJoint:setAnchors

Edit

Sets the anchor points of the DistanceJoint.



Sets the anchor points using numbers.

Arguments

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.

Returns

Nothing

Sets the anchor points using vectors.

Arguments

NameTypeDescription
firstVec3 The first anchor point, in world coordinates.
secondVec3 The second anchor point, in world coordinates.

Returns

Nothing

See also