Updated box2d from 2.2.1 to 2.3.0

--HG--
branch : box2d-2.3
This commit is contained in:
Alex Szpakowski
2013-11-09 04:30:36 -04:00
parent 5179ca5655
commit 5e3a0fbc6e
86 changed files with 1590 additions and 430 deletions
@@ -113,6 +113,21 @@ int w_Contact_resetRestitution(lua_State *L)
return 0;
}
int w_Contact_setTangentSpeed(lua_State *L)
{
Contact *t = luax_checkcontact(L, 1);
float speed = (float) luaL_checknumber(L, 2);
t->setTangentSpeed(speed);
return 0;
}
int w_Contact_getTangentSpeed(lua_State *L)
{
Contact *t = luax_checkcontact(L, 1);
lua_pushnumber(L, t->getTangentSpeed());
return 1;
}
int w_Contact_getChildren(lua_State *L)
{
Contact *t = luax_checkcontact(L, 1);
@@ -138,6 +153,8 @@ extern "C" int luaopen_contact(lua_State *L)
{ "setEnabled", w_Contact_setEnabled },
{ "resetFriction", w_Contact_resetFriction },
{ "resetRestitution", w_Contact_resetRestitution },
{ "setTangentSpeed", w_Contact_setTangentSpeed },
{ "getTangentSpeed", w_Contact_getTangentSpeed },
{ "getChildren", w_Contact_getChildren },
{ 0, 0 }
};