Home | Trees | Indices | Help |
|
---|
|
object --+ | Constraint --+ | PivotJoint
Instance Methods | |||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
anchr1 | |
anchr2 | |
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 |
Method Details |
a and b are the two bodies to connect, and pivot is the point in world coordinates of the pivot. Because the pivot location is given in world coordinates, you must have the bodies moved into the correct positions already. Alternatively you can specify the joint based on a pair of anchor points, but make sure you have the bodies in the right place as the joint will fix itself as soon as you start simulating the space. That is, either create the joint with PivotJoint(a, b, pivot) or PivotJoint(a, b, anchr1, anchr2).
|
Property Details |
anchr1
|
anchr2
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Dec 04 02:06:47 2011 | http://epydoc.sourceforge.net |