new DistanceConstraint(world, bodyA, bodyB, distance, localAnchorA, localAnchorB, maxForce)
A constraint that tries to keep the distance between two bodies constant.
Parameters
Name Type Argument Default Description world Phaser.Physics.P2 A reference to the P2 World. bodyA p2.Body First connected body. bodyB p2.Body Second connected body. distance number The distance to keep between the bodies. localAnchorA Array <optional> The anchor point for bodyA, defi