__init__(self,
a,
b,
*args)
(Constructor)
|
|
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).
- a : Body
- The first of the two bodies
- b : Body
- The second of the two bodies
- args : [Vec2d] or [Vec2d,Vec2d]
- Either one pivot point, or two anchor points
- Overrides:
object.__init__
|