Function
love.physics.newWorld( x1, y1, x2, y2, xg, yg, sleep )
Create a new World.

Calling love.physics.newWorld(x,y) is equivalent to: love.physics.newWorld(-x,-y,x,y,0,0,true)

Synopsis
world = love.physics.newWorld( x1, y1, x2, y2, xg, yg, sleep )
Parameters
x1 number The smallest x position in the world.
y1 number The smallest y position in the world.
x2 number The largest x position in the world.
y2 number The largest y position in the world.
xg number The x component of gravity.
yg number The y component of gravity.
sleep = true boolean Whether sleep is possible in the world.
Returns
world World A brave new World.
Copyright © 2006-2010 LÖVE Development Team.