SliderJoint:setMotorTarget

Edit

Sets the target value for the SliderJoint's motor. This is either a target position or a target velocity, based on the mode set by SliderJoint:setMotorMode.

SliderJoint:setMotorTarget(target)

Arguments

NameTypeDescription
targetnumber The target value, in meters or meters per second, depending on the mode.

Returns

Nothing

See also