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.
joint = love.physics.newFrictionJoint( body1, body2, x, y, collideConnected )
Body body1
Body body2
number x
number y
boolean collideConnected (false)
FrictionJoint joint
joint = love.physics.newFrictionJoint( body1, body2, x1, y1, x2, y2, collideConnected )
Body body1
Body body2
number x1
number y1
number x2
number y2
boolean collideConnected (false)
FrictionJoint joint
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.physics.newFrictionJoint