createBody(x, y, mass, addToWorld, options, points) → {Phaser.Physics.P2.Body}
Creates a new Body and adds it to the World.
Parameters
Name Type Argument Default Description x number The x coordinate of Body. y number The y coordinate of Body. mass number The mass of the Body. A mass of 0 means a 'static' Body is created. addToWorld boolean <optional> false Automatically add this Body to the world? (usually false as it won't have any shapes on construction). opti