mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Updated box2d from 2.2.1 to 2.3.0
--HG-- branch : box2d-2.3
This commit is contained in:
@@ -113,6 +113,21 @@ int w_Contact_resetRestitution(lua_State *L)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int w_Contact_setTangentSpeed(lua_State *L)
|
||||
{
|
||||
Contact *t = luax_checkcontact(L, 1);
|
||||
float speed = (float) luaL_checknumber(L, 2);
|
||||
t->setTangentSpeed(speed);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int w_Contact_getTangentSpeed(lua_State *L)
|
||||
{
|
||||
Contact *t = luax_checkcontact(L, 1);
|
||||
lua_pushnumber(L, t->getTangentSpeed());
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_Contact_getChildren(lua_State *L)
|
||||
{
|
||||
Contact *t = luax_checkcontact(L, 1);
|
||||
@@ -138,6 +153,8 @@ extern "C" int luaopen_contact(lua_State *L)
|
||||
{ "setEnabled", w_Contact_setEnabled },
|
||||
{ "resetFriction", w_Contact_resetFriction },
|
||||
{ "resetRestitution", w_Contact_resetRestitution },
|
||||
{ "setTangentSpeed", w_Contact_setTangentSpeed },
|
||||
{ "getTangentSpeed", w_Contact_getTangentSpeed },
|
||||
{ "getChildren", w_Contact_getChildren },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user