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 body1Body body2number gx1number gy1number gx2number gy2number x1number y1number x2number y2number 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 body1Body body2number gx1number gy1number gx2number gy2number x1number y1number x2number y2number 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