|
@@ -540,6 +540,15 @@ int w_Body_getFixtureList(lua_State *L)
|
|
return n;
|
|
return n;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+int w_Body_getContactList(lua_State *L)
|
|
|
|
+{
|
|
|
|
+ Body *t = luax_checkbody(L, 1);
|
|
|
|
+ lua_remove(L, 1);
|
|
|
|
+ int n = 0;
|
|
|
|
+ luax_catchexcept(L, [&](){ n = t->getContactList(L); });
|
|
|
|
+ return n;
|
|
|
|
+}
|
|
|
|
+
|
|
int w_Body_destroy(lua_State *L)
|
|
int w_Body_destroy(lua_State *L)
|
|
{
|
|
{
|
|
Body *t = luax_checkbody(L, 1);
|
|
Body *t = luax_checkbody(L, 1);
|
|
@@ -615,6 +624,7 @@ static const luaL_Reg functions[] =
|
|
{ "isFixedRotation", w_Body_isFixedRotation },
|
|
{ "isFixedRotation", w_Body_isFixedRotation },
|
|
{ "getWorld", w_Body_getWorld },
|
|
{ "getWorld", w_Body_getWorld },
|
|
{ "getFixtureList", w_Body_getFixtureList },
|
|
{ "getFixtureList", w_Body_getFixtureList },
|
|
|
|
+ { "getContactList", w_Body_getContactList },
|
|
{ "destroy", w_Body_destroy },
|
|
{ "destroy", w_Body_destroy },
|
|
{ "setUserData", w_Body_setUserData },
|
|
{ "setUserData", w_Body_setUserData },
|
|
{ "getUserData", w_Body_getUserData },
|
|
{ "getUserData", w_Body_getUserData },
|