Package pymunk :: Module constraint :: Class RatchetJoint
[frames] | no frames]

Class RatchetJoint

object --+    
         |    
Constraint --+
             |
            RatchetJoint

Works like a socket wrench.
Instance Methods
 
__init__(self, a, b, phase, ratchet)
Works like a socket wrench. ratchet is the distance between "clicks", phase is the initial offset to use when deciding where the ratchet angles are.
 
__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
  angle
  phase
  ratchet
  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, phase, ratchet)
(Constructor)

 
Works like a socket wrench. ratchet is the distance between "clicks", phase is the initial offset to use when deciding where the ratchet angles are.
Overrides: object.__init__

Property Details

angle

Get Method:
_get_angle(self)
Set Method:
_set_angle(self, angle)

phase

Get Method:
_get_phase(self)
Set Method:
_set_phase(self, phase)

ratchet

Get Method:
_get_ratchet(self)
Set Method:
_set_ratchet(self, ratchet)