Available since LÖVE 0.8.0
This function is not supported in earlier versions.
Creates a joint between two bodies. Its only function is enforcing a max distance between these bodies.
There is a bug in version 0.8.0 where the cooridnates of the anchors are divided by the number from love.physics.getMeter. As a workaround, multiply your anchor coordinates with that number and it should work like expected.
joint = love.physics.newRopeJoint( body1, body2, x1, y1, x2, y2, maxLength, collideConnected )
Body body1
Body body2
number x1
number y1
number x2
number y2
number maxLength
boolean collideConnected (false)
RopeJoint joint
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.physics.newRopeJoint