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

Class PinJoint

object --+    
         |    
     Joint --+
             |
            PinJoint

Keeps the anchor points at a set distance from one another.
Instance Methods
 
__init__(self, a, b, anchr1, anchr2)
a and b are the two bodies to connect, and anchr1 and anchr2 are the anchor points on those bodies.
 
__del__(self) (Inherited from pymunk.Joint)

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

Properties

Inherited from object: __class__

Method Details

__init__(self, a, b, anchr1, anchr2)
(Constructor)

 
a and b are the two bodies to connect, and anchr1 and anchr2 are the anchor points on those bodies.
Overrides: object.__init__