mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
World no longer has an explicit size
--HG-- branch : box2d-update
This commit is contained in:
@@ -87,25 +87,18 @@ namespace box2d
|
||||
public:
|
||||
|
||||
/**
|
||||
* 30 pixels in one meter by default.
|
||||
* Creates a new world.
|
||||
**/
|
||||
static const int DEFAULT_METER = 30;
|
||||
World();
|
||||
|
||||
/**
|
||||
* Creates a new world with the given bounding box.
|
||||
* @param aabb The bounding box.
|
||||
**/
|
||||
World(b2AABB aabb);
|
||||
|
||||
/**
|
||||
* Creates a new world with the given bounding box, gravity
|
||||
* Creates a new world with the given gravity
|
||||
* and whether or not the bodies should sleep when appropriate.
|
||||
* @param aabb The bounding box.
|
||||
* @param gravity The gravity of the World.
|
||||
* @param sleep True if the bodies should be able to sleep,
|
||||
* false otherwise.
|
||||
**/
|
||||
World(b2AABB aabb, b2Vec2 gravity, bool sleep, int meter = DEFAULT_METER);
|
||||
World(b2Vec2 gravity, bool sleep);
|
||||
|
||||
virtual ~World();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user