Expose axis vector of PrismaticJoint and WheelJoint (fixes #1176)

This commit is contained in:
airstruck
2016-07-07 21:13:49 +02:00
parent debea1192b
commit 24da8433d0
7 changed files with 43 additions and 0 deletions
@@ -164,6 +164,13 @@ int w_PrismaticJoint_getLimits(lua_State *L)
return t->getLimits(L);
}
int w_PrismaticJoint_getAxis(lua_State *L)
{
PrismaticJoint *t = luax_checkprismaticjoint(L, 1);
lua_remove(L, 1);
return t->getAxis(L);
}
static const luaL_Reg w_PrismaticJoint_functions[] =
{
{ "getJointTranslation", w_PrismaticJoint_getJointTranslation },
@@ -183,6 +190,7 @@ static const luaL_Reg w_PrismaticJoint_functions[] =
{ "getLowerLimit", w_PrismaticJoint_getLowerLimit },
{ "getUpperLimit", w_PrismaticJoint_getUpperLimit },
{ "getLimits", w_PrismaticJoint_getLimits },
{ "getAxis", w_PrismaticJoint_getAxis },
{ 0, 0 }
};