mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Expose axis vector of PrismaticJoint and WheelJoint (fixes #1176)
This commit is contained in:
@@ -132,6 +132,13 @@ int w_WheelJoint_getSpringDampingRatio(lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_WheelJoint_getAxis(lua_State *L)
|
||||
{
|
||||
WheelJoint *t = luax_checkwheeljoint(L, 1);
|
||||
lua_remove(L, 1);
|
||||
return t->getAxis(L);
|
||||
}
|
||||
|
||||
static const luaL_Reg w_WheelJoint_functions[] =
|
||||
{
|
||||
{ "getJointTranslation", w_WheelJoint_getJointTranslation },
|
||||
@@ -147,6 +154,7 @@ static const luaL_Reg w_WheelJoint_functions[] =
|
||||
{ "getSpringFrequency", w_WheelJoint_getSpringFrequency },
|
||||
{ "setSpringDampingRatio", w_WheelJoint_setSpringDampingRatio },
|
||||
{ "getSpringDampingRatio", w_WheelJoint_getSpringDampingRatio },
|
||||
{ "getAxis", w_WheelJoint_getAxis },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user