Class pymunk.PivotJoint

Joint --+
        |
       PivotJoint
Simply allow two objects to pivot about a single point.

Methods

  __init__(self, a, b, pivot)
a and b are the two bodies to connect, and pivot is the point in world coordinates of the pivot.
  __del__(self) (Inherited from pymunk.Joint)

Method Details

__init__

(Constructor) __init__(self, a, b, pivot)
a and b are the two bodies to connect, and pivot is the point in world coordinates of the pivot. Because the pivot location is given in world coordinates, you must have the bodies moved into the correct positions already.
Overrides:
Joint.__init__