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) |
|
bias_coef The percentage of error corrected each step of the space. (Inherited from pymunk.constraint.Constraint) |
|
max_bias The maximum speed at which the constraint can apply error correction. (Inherited from pymunk.constraint.Constraint) |
|
max_force The maximum force that the constraint can use to act on the two bodies. (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 Mar 07 22:17:52 2010 | http://epydoc.sourceforge.net |