HingeJoint:setMotorMode

Edit

Sets the motor mode of the HingeJoint. When enabled, the motor will drive the hinge to a target angle (for the position mode) or a target speed (for the velocity mode), set by HingeJoint:setMotorTarget.



Arguments

NameTypeDescription
modeMotorMode The mode of the motor.

Returns

Nothing

Disables the motor.

Arguments

None

Returns

Nothing

See also