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

Class PinJoint

object --+    
         |    
Constraint --+
             |
            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.Constraint)

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

Properties
  anchr1
  anchr2
  distance
  a (Inherited from pymunk.Constraint)
  b (Inherited from pymunk.Constraint)
  bias_coef
The percentage of error corrected each step of the space. (Inherited from pymunk.Constraint)
  max_bias
The maximum speed at which the constraint can apply error correction. (Inherited from pymunk.Constraint)
  max_force
The maximum force that the constraint can use to act on the two bodies. (Inherited from pymunk.Constraint)

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__

Property Details

anchr1

Get Method:
_get_anchr1(self)
Set Method:
_set_anchr1(self, anchr)

anchr2

Get Method:
_get_anchr2(self)
Set Method:
_set_anchr2(self, anchr)

distance

Get Method:
_get_dist(self)
Set Method:
_set_dist(self, dist)