Difference between revisions of "WheelJoint:setMotorEnabled"

(The function has been renamed. See issue 691)
 
m (Fixed to synopsis)
 
Line 5: Line 5:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
WheelJoint:enableMotor( enable )
+
WheelJoint:setMotorEnabled( enable )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===

Latest revision as of 00:27, 6 November 2016

Available since LÖVE 0.9.0
This method is not supported in earlier versions.

Starts and stops the joint motor.

Function

Synopsis

WheelJoint:setMotorEnabled( enable )

Arguments

boolean enable
True turns the motor on and false turns it off.

Returns

Nothing.

See Also


Other Languages