Difference between revisions of "love.physics.newWorld"
m (1 revision: Imported docs from potato.) |
|
(No difference)
|
Revision as of 15:54, 14 February 2010
Contents
Function
Synopsis
world = love.physics.newWorld( w, h )
Arguments
Returns
World world
- A World object.
Function
Synopsis
world = love.physics.newWorld( x1, y1, x2, y2, xg, yg, sleep )
Arguments
number x1
- The smallest x position in the world.
number y1
- The smallest y position in the world.
number x2
- The largest x position in the world.
number y2
- The largest y position in the world.
number xg
- The x component of gravity.
number yg
- The y component of gravity.
boolean sleep (true)
- Whether sleep is possible in the world.
Returns
World world
- A brave new World.