mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Update Joint APIs
--HG-- branch : box2d-update
This commit is contained in:
@@ -38,17 +38,17 @@ namespace box2d
|
||||
return t->getGroundAnchors(L);
|
||||
}
|
||||
|
||||
int w_PulleyJoint_getLength1(lua_State * L)
|
||||
int w_PulleyJoint_getLengthA(lua_State * L)
|
||||
{
|
||||
PulleyJoint * t = luax_checkpulleyjoint(L, 1);
|
||||
lua_pushnumber(L, t->getLength1());
|
||||
lua_pushnumber(L, t->getLengthA());
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_PulleyJoint_getLength2(lua_State * L)
|
||||
int w_PulleyJoint_getLengthB(lua_State * L)
|
||||
{
|
||||
PulleyJoint * t = luax_checkpulleyjoint(L, 1);
|
||||
lua_pushnumber(L, t->getLength2());
|
||||
lua_pushnumber(L, t->getLengthB());
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -61,8 +61,8 @@ namespace box2d
|
||||
|
||||
static const luaL_Reg functions[] = {
|
||||
{ "getGroundAnchors", w_PulleyJoint_getGroundAnchors },
|
||||
{ "getLength1", w_PulleyJoint_getLength1 },
|
||||
{ "getLength2", w_PulleyJoint_getLength2 },
|
||||
{ "getLengthA", w_PulleyJoint_getLengthA },
|
||||
{ "getLengthB", w_PulleyJoint_getLengthB },
|
||||
{ "getRatio", w_PulleyJoint_getRatio },
|
||||
// From Joint.
|
||||
{ "getType", w_Joint_getType },
|
||||
|
||||
Reference in New Issue
Block a user