Physics.P2.RevoluteConstraint
Class: Phaser.Physics.P2.RevoluteConstraint
Constructor
new RevoluteConstraint(world, bodyA, pivotA, bodyB, pivotB, maxForce, worldPivot)
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 |
---|---|---|---|---|
world | Phaser.Physics.P2 | A reference to the P2 World. |