HingeJoint:getMotorMode
EditReturns 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
.
mode = HingeJoint:getMotorMode()
Arguments
None
Returns
Name | Type | Description |
mode | MotorMode |
The mode of the motor, or nil if the motor is disabled.
|