SliderJoint:getPosition

Edit

Returns the position of the slider joint. The "zero" position is the relative distance the colliders were at when the joint is created, and positive positions are further apart along the slider's axis.

position = SliderJoint:getPosition()

Arguments

None

Returns

NameTypeDescription
positionnumber The position of the slider joint, in meters.

See also