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

Class GrooveJoint

object --+    
         |    
Constraint --+
             |
            GrooveJoint

Similar to a pivot joint, but one of the anchors is on a linear slide instead of being fixed.
Instance Methods
 
__init__(self, a, b, groove_a, groove_b, anchr2)
The groove goes from groov_a to groove_b on body a, and the pivot is attached to anchr2 on body b.
 
__del__(self) (Inherited from pymunk.Constraint)

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

Properties
  anchr2
  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, groove_a, groove_b, anchr2)
(Constructor)

 
The groove goes from groov_a to groove_b on body a, and the pivot is attached to anchr2 on body b. All coordinates are body local.
Overrides: object.__init__

Property Details

anchr2

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