Difference between revisions of "love.physics.newFrictionJoint"

(Created page with "{{newin|0.8.0|080|type=function}} Create a friction joint between two bodies. A FrictionJoint applies friction to a body. == Function == === Synopsis === <source lang="lua">...")
 
m
Line 12: Line 12:
 
{{param|number|x|The x position of the anchor point.}}
 
{{param|number|x|The x position of the anchor point.}}
 
{{param|number|y|The y position of the anchor point.}}
 
{{param|number|y|The y position of the anchor point.}}
{{param|boolean|collideConnected (false)|Specifies whether the two bodies should collide with eachother.}}
+
{{param|boolean|collideConnected (false)|Specifies whether the two bodies should collide with each other.}}
 
=== Returns ===
 
=== Returns ===
 
{{param|FrictionJoint|joint|The new FrictionJoint.}}
 
{{param|FrictionJoint|joint|The new FrictionJoint.}}

Revision as of 13:13, 9 April 2012

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