SliderJoint:getMotorMode

Edit

Returns the motor mode of the SliderJoint. When enabled, the motor will drive the slider to a target position (for the position mode) or a target speed (for the velocity mode), set by SliderJoint:setMotorTarget.

mode = SliderJoint:getMotorMode()

Arguments

None

Returns

NameTypeDescription
modeMotorMode The mode of the motor, or nil if the motor is disabled.

See also