createRevoluteConstraint(bodyA, pivotA, bodyB, pivotB, maxForce, worldPivot) → {Phaser.Physics.P2.RevoluteConstraint}
Connects two bodies at given offset points, letting them rotate relative to each other around this point.The pivot points are given in world (pixel) coordinates.
Parameters
Name Type Argument Default Description bodyA Phaser.Sprite | Phaser.Physics.P2.Body | p2.Body First connected body. pivotA Array The point relative to the center of mass of bodyA which bodyA is