Difference between revisions of "love.physics.newRevoluteJoint"
m (1 revision: Importing from potato (again).) |
The burrito (talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
Create a pivot joint between two bodies. | Create a pivot joint between two bodies. | ||
Line 10: | Line 9: | ||
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|body|body1|The body to | + | {{param|body|body1|The first body the joint is attached to.}} |
− | {{param|body|body2|The body to | + | {{param|body|body2|The second body the joint is attached to.}} |
{{param|number|x|The x position of the connecting point.}} | {{param|number|x|The x position of the connecting point.}} | ||
{{param|number|y|The y position of the connecting point.}} | {{param|number|y|The y position of the connecting point.}} |
Revision as of 02:37, 10 June 2010
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 the joint is attached to.
body body2
- The second body the joint is attached to.
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.