Package pymunk :: Class PivotJoint
[frames] | no frames]

Class PivotJoint

object --+    
         |    
     Joint --+
             |
            PivotJoint

Simply allow two objects to pivot about a single point.
Instance 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)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, a, b, pivot)
(Constructor)

 
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: object.__init__