Difference between revisions of "love.physics.newRevoluteJoint"

m (Changed type 'joint' to the proper 'Joint'.)
Line 18: Line 18:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.physics]]
 
* [[parent::love.physics]]
 +
* [[Constructs::RevoluteJoint]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Create a pivot joint between two bodies.
+
{{#set:Description=Create a pivot joint between two bodies.}}
}}
+
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.physics.newRevoluteJoint}}
 
{{i18n|love.physics.newRevoluteJoint}}

Revision as of 17:31, 25 March 2011

Create a pivot joint between two bodies.

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

Function

Synopsis

joint = love.physics.newRevoluteJoint( body1, body2, x, y )

Arguments

Body body1
The first body to connect with a Revolute Joint.
Body body2
The second body to connect with a Revolute Joint.
number x
The x position of the connecting point.
number y
The y position of the connecting point.

Returns

Joint joint
The new revolute joint.

See Also


Other Languages