Remove legacy meter setting from love.physics.newWorld

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-25 11:32:46 -04:00
parent 5cd2ce05fd
commit b6f3d2114f
3 changed files with 3 additions and 6 deletions
+1 -2
View File
@@ -38,9 +38,8 @@ namespace box2d
return "love.physics.box2d";
}
World * Physics::newWorld(float gx, float gy, bool sleep, int meter)
World * Physics::newWorld(float gx, float gy, bool sleep)
{
Physics::setMeter(meter);
return new World(b2Vec2(gx, gy), sleep);
}
+1 -2
View File
@@ -72,9 +72,8 @@ namespace box2d
* @param gx Gravity along x-axis.
* @param gy Gravity along y-axis.
* @param sleep Whether the World allows sleep.
* @param meter The scale in px/m.
**/
World * newWorld(float gx, float gy, bool sleep, int meter);
World * newWorld(float gx, float gy, bool sleep);
/**
* Creates a new Body at the specified position.
+1 -2
View File
@@ -34,9 +34,8 @@ namespace box2d
float gx = (float)luaL_optnumber(L, 1, 0);
float gy = (float)luaL_optnumber(L, 2, 0);
bool sleep = luax_optboolean(L, 3, true);
int meter = (int)luaL_optnumber(L, 4, Physics::DEFAULT_METER);
World * w = instance->newWorld(gx, gy, sleep, meter);
World * w = instance->newWorld(gx, gy, sleep);
luax_newtype(L, "World", PHYSICS_WORLD_T, (void*)w);
return 1;