Creates a new World.
Available since LÖVE 0.8.0
This variant is not supported in earlier versions.
world = love.physics.newWorld( xg, yg, sleep )
number xg (0)
number yg (0)
boolean sleep (true)
World world
Removed in LÖVE 0.8.0
This variant is not supported in that and later versions.
This function creates a new World with the given size, no gravity and sleeping turned on.
world = love.physics.newWorld( x1, y1, x2, y2 )
number x1
number y1
number x2
number y2
World world
Removed in LÖVE 0.8.0
This variant is not supported in that and later versions.
world = love.physics.newWorld( x1, y1, x2, y2, xg, yg, sleep )
number x1
number y1
number x2
number y2
number xg
number yg
boolean sleep (true)
World world
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.physics.newWorld