SliderJoint:setMaxMotorForce
EditSets the maximum amount of force the motor can use to reach its target, in newtons.
There are separate limits for each direction the slider can move. They're usually kept the same, but one of them can be set to zero to make a motor that can only push in one direction. Note that both limits are positive.
SliderJoint:setMaxMotorForce(positive, negative)
Arguments
Name | Type | Default | Description |
positive | number | math.huge | The maximum amount of force the motor can use to push the slider in the "positive" direction, in newtons. |
negative | number | positive | The maximum amount of force the motor can use to push the slider in the "negative" direction, in newtons. |
Returns
Nothing