{{newin|[[0.8.0]]|080|type=function}}
Creates a wheel joint.

[[File:physicsJointWheel.png]]

== Function ==
=== Synopsis ===
<source lang="lua">
joint = love.physics.newWheelJoint( body1, body2, x, y, ax, ay, collideConnected )
</source>
=== Arguments ===
{{param|Body|body1|The first body.}}
{{param|Body|body2|The second body.}}
{{param|number|x|The x position of the anchor point.}}
{{param|number|y|The y position of the anchor point.}}
{{param|number|ax|The x position of the axis unit vector.}}
{{param|number|ay|The y position of the axis unit vector.}}
{{param|boolean|collideConnected (false)|Specifies whether the two bodies should collide with each other.}}
=== Returns ===
{{param|WheelJoint|joint|The new WheelJoint.}}

== Function ==
=== Synopsis ===
<source lang="lua">
joint = love.physics.newWheelJoint( body1, body2, x1, y1, x2, y2, ax, ay, collideConnected )
</source>
=== Arguments ===
{{param|Body|body1|The first body.}}
{{param|Body|body2|The second body.}}
{{param|number|x1|The x position of the first anchor point.}}
{{param|number|y1|The y position of the first anchor point.}}
{{param|number|x2|The x position of the second anchor point.}}
{{param|number|y2|The y position of the second anchor point.}}
{{param|number|ax|The x position of the axis unit vector.}}
{{param|number|ay|The y position of the axis unit vector.}}
{{param|boolean|collideConnected (false)|Specifies whether the two bodies should collide with each other.}}
=== Returns ===
{{param|WheelJoint|joint|The new WheelJoint.}}

== See Also ==
* [[parent::love.physics]]
* [[Constructs::WheelJoint]]
* [[Constructs::Joint]]
[[Category:Functions]]
{{#set:Description=Creates a wheel joint.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|love.physics.newWheelJoint}}