mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Update Joint APIs
--HG-- branch : box2d-update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user