new PrismaticConstraint(world, bodyA, bodyB, lockRotation, anchorA, anchorB, axis, maxForce)
Connects two bodies at given offset points, letting them rotate relative to each other around this point.
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. lockRotation boolean <optional> true If set to false, bodyB will be free to rotate around it