Joint:getAnchors

Edit

Returns the world space anchor points of the Joint. Joints are attached to each collider at a single point, which is defined when the Joint is created.

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

Arguments

None

Returns

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

See also