setBounds(x, y, width, height)
Updates the size of this physics world.
Parameters
Name Type Description x number Top left most corner of the world. y number Top left most corner of the world. width number New width of the world. Can never be smaller than the Game.width. height number New height of the world. Can never be smaller than the Game.height.
Source code: physics/arcade/World.js (Line 134)