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
@@ -138,6 +138,12 @@ int PrismaticJoint::getLimits(lua_State *L)
return 2;
}
int PrismaticJoint::getAxis(lua_State *L)
{
lua_pushnumber(L, joint->GetLocalAxisA().x);
lua_pushnumber(L, joint->GetLocalAxisA().y);
return 2;
}
} // box2d
} // physics