Creates a PulleyJoint to join two bodies to each other and the ground.
The pulley joint simulates a pulley with an optional block and tackle. If the ratio parameter has a value different from one, then the simulated rope extends faster on one side than the other. In a pulley joint the total length of the simulated rope is the constant length1 + ratio * length2, which is set when the pulley joint is created.
Pulley joints can behave unpredictably if one side is fully extended. It is recommended that the method setMaxLengths be used to constrain the maximum lengths each side can attain.
Available since LÖVE 0.8.0
This variant is not supported in earlier versions.
joint = love.physics.newPulleyJoint( body1, body2, gx1, gy1, gx2, gy2, x1, y1, x2, y2, ratio, collideConnected )
Body body1
Body body2
number gx1
number gy1
number gx2
number gy2
number x1
number y1
number x2
number y2
number ratio (1)
boolean collideConnected (true)
PulleyJoint joint
Removed in LÖVE 0.8.0
This variant is not supported in that and later versions.
joint = love.physics.newPulleyJoint( body1, body2, gx1, gy1, gx2, gy2, x1, y1, x2, y2, ratio )
Body body1
Body body2
number gx1
number gy1
number gx2
number gy2
number x1
number y1
number x2
number y2
number ratio (1)
Joint joint
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.physics.newPulleyJoint