love.physics.newFrictionJoint

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

Create a friction joint between two bodies. A FrictionJoint applies friction to a body.

Function

Synopsis

joint = love.physics.newFrictionJoint( body1, body2, x, y, collideConnected )

Arguments

Body body1
The first body to attach to the joint.
Body body2
The second body to attach to the joint.
number x
The x position of the anchor point.
number y
The y position of the anchor point.
boolean collideConnected (false)
Specifies whether the two bodies should collide with each other.

Returns

FrictionJoint joint
The new FrictionJoint.

See Also

Other Languages