Package pymunk :: Module constraint :: 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=(0, 0), anchr2=(0, 0))
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.Constraint)
 
activate_bodies(self) (Inherited from pymunk.constraint.Constraint)

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

Properties
  anchr1
  anchr2
  distance
  a
The first of the two bodies constrained (Inherited from pymunk.constraint.Constraint)
  b
The second of the two bodies constrained (Inherited from pymunk.constraint.Constraint)
  error_bias
The rate at which joint error is corrected. (Inherited from pymunk.constraint.Constraint)
  impulse
Get the last impulse applied by this constraint. (Inherited from pymunk.constraint.Constraint)
  max_bias
The maximum rate at which joint error is corrected. Defaults to infinity (Inherited from pymunk.constraint.Constraint)
  max_force
The maximum force that the constraint can use to act on the two bodies. Defaults to infinity (Inherited from pymunk.constraint.Constraint)

Inherited from object: __class__

Method Details

__init__(self, a, b, anchr1=(0, 0), anchr2=(0, 0))
(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)