Function
love.physics.newWorld( lx, ly, ux, uy, gx, gy, sleep )
This function creates a new World with an area defined by the two vertices, the given gravity, and sleeping turned on or off.
Synopsis
world = love.physics.newWorld( lx, ly, ux, uy, gx, gy, sleep )
Arguments
lx X-component of lower left corner of the World area.
ly Y-component of lower left corner of the World area.
ux X-component of upper left corner of the World area.
uy Y-component of upper left corner of the World area.
gx X-component of the gravity.
gy Y-component of the gravity.
sleep True to allow sleep, false otherwise.
Returns
World A World object.
Copyright © 2006-2008 LÖVE Development Team.