SliderJoint:getFriction

Edit

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

friction = SliderJoint:getFriction()

Arguments

None

Returns

NameTypeDescription
frictionnumber The maximum friction force, in newtons.

Notes

Friction is only applied when the motor is disabled.

See also