love.physics.newRevoluteJoint

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 body to attach to the mouse.
body body2
The body to attach to the mouse.
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