Difference between revisions of "love.physics.newRevoluteJoint"
The burrito (talk | contribs) |
The burrito (talk | contribs) |
||
Line 9: | Line 9: | ||
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param| | + | {{param|Body|body1|The first body to connect with a Revolute Joint.}} |
− | {{param| | + | {{param|Body|body2|The second body to connect with a Revolute Joint.}} |
{{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:41, 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 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.