Creates a pivot joint between two bodies.

This joint connects two bodies to a point around which they can pivot.

[[File:physicsJointRevolute.png]]

== Function ==
{{newin|[[0.8.0]]|080|type=variant}}
=== Synopsis ===
<source lang="lua">
joint = love.physics.newRevoluteJoint( body1, body2, x, y, collideConnected )
</source>
=== Arguments ===
{{param|Body|body1|The first body.}}
{{param|Body|body2|The second body.}}
{{param|number|x|The x position of the connecting point.}}
{{param|number|y|The y position of the connecting point.}}
{{param|boolean|collideConnected (false)|Specifies whether the two bodies should collide with each other.}}
=== Returns ===
{{param|RevoluteJoint|joint|The new revolute joint.}}

== Function ==
{{newin|[[0.10.2]]|102|type=variant}}
=== Synopsis ===
<source lang="lua">
joint = love.physics.newRevoluteJoint( body1, body2, x1, y1, x2, y2, collideConnected, referenceAngle )
</source>
=== Arguments ===
{{param|Body|body1|The first body.}}
{{param|Body|body2|The second body.}}
{{param|number|x1|The x position of the first connecting point.}}
{{param|number|y1|The y position of the first connecting point.}}
{{param|number|x2|The x position of the second connecting point.}}
{{param|number|y2|The y position of the second connecting point.}}
{{param|boolean|collideConnected (false)|Specifies whether the two bodies should collide with each other.}}
{{param|number|referenceAngle (0)|The reference angle between body1 and body2, in radians.}}
=== Returns ===
{{param|RevoluteJoint|joint|The new revolute joint.}}

== Function ==
{{oldin|[[0.8.0]]|080|type=variant}}
=== Synopsis ===
<source lang="lua">
joint = love.physics.newRevoluteJoint( body1, body2, x, y )
</source>
=== Arguments ===
{{param|Body|body1|The first body to connect with a Revolute Joint.}}
{{param|Body|body2|The second body to connect with a Revolute Joint.}}
{{param|number|x|The x position of the connecting point.}}
{{param|number|y|The y position of the connecting point.}}
=== Returns ===
{{param|RevoluteJoint|joint|The new revolute joint.}}

== See Also ==
* [[parent::love.physics]]
* [[Constructs::RevoluteJoint]]
* [[Constructs::Joint]]
[[Category:Functions]]
{{#set:Description=Creates a pivot joint between two bodies.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|love.physics.newRevoluteJoint}}