love.physics.newRopeJoint

Available since LÖVE 0.8.0
This function is not supported in earlier versions.

Create a joint between two bodies. Its only function is enforcing a max distance between these bodies.

Function

Synopsis

joint = love.physics.newRopeJoint( body1, body2, x1, y1, x2, y2, maxLength )

Arguments

Body body1
The first body to attach to the joint.
Body body2
The second body to attach to the joint.
number x1
The x position of the first anchor point.
number y1
The y position of the first anchor point.
number x2
The x position of the second anchor point.
number y2
The y position of the second anchor point.
number maxLength
The maximum distance for the bodies.

Returns

RopeJoint joint
The new RopeJoint.

See Also

Other Languages