mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Expose axis vector of PrismaticJoint and WheelJoint (fixes #1176)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user