Creates a DistanceJoint between two bodies.
This joint constrains the distance between two points on two bodies to be constant. These two points are specified in world coordinates and the two bodies are assumed to be in place when this joint is created. The first anchor point is connected to the first body and the second to the second body, and the points define the length of the distance joint.
Available since LÖVE 0.8.0
This variant is not supported in earlier versions.
joint = love.physics.newDistanceJoint( body1, body2, x1, y1, x2, y2, collideConnected )
Body body1Body body2number x1number y1number x2number y2boolean collideConnected (false)DistanceJoint joint Removed in LÖVE 0.8.0
This variant is not supported in that and later versions.
joint = love.physics.newDistanceJoint( body1, body2, x1, y1, x2, y2 )
Body body1Body body2number x1number y1number x2number y2DistanceJoint joint
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.physics.newDistanceJoint