Class pymunk.SlideJoint

Joint --+
        |
       SlideJoint
Like pin joints, but have a minimum and maximum distance. A chain could be modeled using this joint. It keeps the anchor points from getting to far apart, but will allow them to get closer together.

Methods

  __init__(self, a, b, anchr1, anchr2, min, max)
a and b are the two bodies to connect, anchr1 and anchr2 are the anchor points on those bodies, and min and max define the allowed distances of the anchor points.
  __del__(self) (Inherited from pymunk.Joint)

Method Details

__init__

(Constructor) __init__(self, a, b, anchr1, anchr2, min, max)
a and b are the two bodies to connect, anchr1 and anchr2 are the anchor points on those bodies, and min and max define the allowed distances of the anchor points.
Overrides:
Joint.__init__