SliderJoint:getMotorTarget
EditReturns 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
Name | Type | Description |
target | number | The target value, in meters or meters per second, depending on the mode. |