love.physics.newFrictionJoint
Create a friction joint between two bodies. A FrictionJoint applies friction to a body.
joint = love.physics.newFrictionJoint( body1, body2, x, y, collideConnected )
body1 Body The first body to attach to the joint.
body2 Body The second body to attach to the joint.
x number The x position of the anchor point.
y number The y position of the anchor point.
collideConnected (false) boolean Specifies whether the two bodies should collide with each other.
joint FrictionJoint The new FrictionJoint.
joint = love.physics.newFrictionJoint( body1, body2, x1, y1, x2, y2, collideConnected )
body1 Body The first body to attach to the joint.
body2 Body The second body to attach to the joint.
x1 number The x position of the first anchor point.
y1 number The y position of the first anchor point.
x2 number The x position of the second anchor point.
y2 number The y position of the second anchor point.
collideConnected (false) boolean Specifies whether the two bodies should collide with each other.
joint FrictionJoint The new FrictionJoint.