Available since LÖVE 0.9.0
This function is not supported in earlier versions.
Creates a joint between two bodies which controls the relative motion between them.
Position and rotation offsets can be specified once the MotorJoint has been created, as well as the maximum motor force and torque that will be be applied to reach the target offsets.
joint = love.physics.newMotorJoint( body1, body2, correctionFactor )
Body body1
Body body2
number correctionFactor (0.3)
MotorJoint joint
Available since LÖVE 0.10.1
This variant is not supported in earlier versions.
joint = love.physics.newMotorJoint( body1, body2, correctionFactor, collideConnected )
Body body1
Body body2
number correctionFactor (0.3)
boolean collideConnected (false)
MotorJoint joint
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.physics.newMotorJoint