SliderJoint:getMotorTarget

Edit

Returns 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.

target = SliderJoint:getMotorTarget()

Arguments

None

Returns

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

See also