SliderJoint:setFriction

Edit

Sets the friction of the SliderJoint. This is a maximum friction force that will be applied, in newtons, opposing movement along the slider axis.

SliderJoint:setFriction(friction)

Arguments

NameTypeDescription
frictionnumber The maximum friction force, in newtons.

Returns

Nothing

Notes

Friction is only applied when the motor is disabled.

See also