Update Joint APIs

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-23 22:32:49 -04:00
parent 6e7d83d7ea
commit de170c02c8
9 changed files with 32 additions and 28 deletions
@@ -86,7 +86,8 @@ namespace box2d
int w_RevoluteJoint_getMotorTorque(lua_State * L)
{
RevoluteJoint * t = luax_checkrevolutejoint(L, 1);
lua_pushnumber(L, t->getMotorTorque());
float inv_dt = (float)luaL_checknumber(L, 2);
lua_pushnumber(L, t->getMotorTorque(inv_dt));
return 1;
}