SliderJoint:getPosition

Returns how far the slider joint is extended (zero is the position the slider was created at, positive values are further apart).

position = SliderJoint:getPosition()

Arguments

None

Returns

NameTypeDescription
positionnumber The joint position along its axis.

See also