mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
Didn't mean to change these
This commit is contained in:
@@ -50,7 +50,7 @@ int w_DistanceJoint_getLength(lua_State *L)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int w_DistanceJoint_setStiffness(lua_State *L)
|
int w_DistanceJoint_setFrequency(lua_State *L)
|
||||||
{
|
{
|
||||||
DistanceJoint *t = luax_checkdistancejoint(L, 1);
|
DistanceJoint *t = luax_checkdistancejoint(L, 1);
|
||||||
float arg1 = (float)luaL_checknumber(L, 2);
|
float arg1 = (float)luaL_checknumber(L, 2);
|
||||||
@@ -58,7 +58,7 @@ int w_DistanceJoint_setStiffness(lua_State *L)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int w_DistanceJoint_getStiffness(lua_State *L)
|
int w_DistanceJoint_getFrequency(lua_State *L)
|
||||||
{
|
{
|
||||||
DistanceJoint *t = luax_checkdistancejoint(L, 1);
|
DistanceJoint *t = luax_checkdistancejoint(L, 1);
|
||||||
lua_pushnumber(L, t->getStiffness());
|
lua_pushnumber(L, t->getStiffness());
|
||||||
@@ -84,8 +84,8 @@ static const luaL_Reg w_DistanceJoint_functions[] =
|
|||||||
{
|
{
|
||||||
{ "setLength", w_DistanceJoint_setLength },
|
{ "setLength", w_DistanceJoint_setLength },
|
||||||
{ "getLength", w_DistanceJoint_getLength },
|
{ "getLength", w_DistanceJoint_getLength },
|
||||||
{ "setStiffness", w_DistanceJoint_setStiffness },
|
{ "setFrequency", w_DistanceJoint_setFrequency },
|
||||||
{ "getStiffness", w_DistanceJoint_getStiffness },
|
{ "getFrequency", w_DistanceJoint_getFrequency },
|
||||||
{ "setDampingRatio", w_DistanceJoint_setDampingRatio },
|
{ "setDampingRatio", w_DistanceJoint_setDampingRatio },
|
||||||
{ "getDampingRatio", w_DistanceJoint_getDampingRatio },
|
{ "getDampingRatio", w_DistanceJoint_getDampingRatio },
|
||||||
{ 0, 0 }
|
{ 0, 0 }
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ int w_MouseJoint_getMaxForce(lua_State *L)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int w_MouseJoint_setStiffness(lua_State *L)
|
int w_MouseJoint_setFrequency(lua_State *L)
|
||||||
{
|
{
|
||||||
MouseJoint *t = luax_checkmousejoint(L, 1);
|
MouseJoint *t = luax_checkmousejoint(L, 1);
|
||||||
float arg1 = (float)luaL_checknumber(L, 2);
|
float arg1 = (float)luaL_checknumber(L, 2);
|
||||||
@@ -74,7 +74,7 @@ int w_MouseJoint_setStiffness(lua_State *L)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int w_MouseJoint_getStiffness(lua_State *L)
|
int w_MouseJoint_getFrequency(lua_State *L)
|
||||||
{
|
{
|
||||||
MouseJoint *t = luax_checkmousejoint(L, 1);
|
MouseJoint *t = luax_checkmousejoint(L, 1);
|
||||||
lua_pushnumber(L, t->getStiffness());
|
lua_pushnumber(L, t->getStiffness());
|
||||||
@@ -102,8 +102,8 @@ static const luaL_Reg w_MouseJoint_functions[] =
|
|||||||
{ "getTarget", w_MouseJoint_getTarget },
|
{ "getTarget", w_MouseJoint_getTarget },
|
||||||
{ "setMaxForce", w_MouseJoint_setMaxForce },
|
{ "setMaxForce", w_MouseJoint_setMaxForce },
|
||||||
{ "getMaxForce", w_MouseJoint_getMaxForce },
|
{ "getMaxForce", w_MouseJoint_getMaxForce },
|
||||||
{ "setStiffness", w_MouseJoint_setStiffness },
|
{ "setFrequency", w_MouseJoint_setFrequency },
|
||||||
{ "getStiffness", w_MouseJoint_getStiffness },
|
{ "getFrequency", w_MouseJoint_getFrequency },
|
||||||
{ "setDampingRatio", w_MouseJoint_setDampingRatio },
|
{ "setDampingRatio", w_MouseJoint_setDampingRatio },
|
||||||
{ "getDampingRatio", w_MouseJoint_getDampingRatio },
|
{ "getDampingRatio", w_MouseJoint_getDampingRatio },
|
||||||
{ 0, 0 }
|
{ 0, 0 }
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ WeldJoint *luax_checkweldjoint(lua_State *L, int idx)
|
|||||||
return j;
|
return j;
|
||||||
}
|
}
|
||||||
|
|
||||||
int w_WeldJoint_setStiffness(lua_State *L)
|
int w_WeldJoint_setFrequency(lua_State *L)
|
||||||
{
|
{
|
||||||
WeldJoint *t = luax_checkweldjoint(L, 1);
|
WeldJoint *t = luax_checkweldjoint(L, 1);
|
||||||
float arg1 = (float)luaL_checknumber(L, 2);
|
float arg1 = (float)luaL_checknumber(L, 2);
|
||||||
@@ -43,7 +43,7 @@ int w_WeldJoint_setStiffness(lua_State *L)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int w_WeldJoint_getStiffness(lua_State *L)
|
int w_WeldJoint_getFrequency(lua_State *L)
|
||||||
{
|
{
|
||||||
WeldJoint *t = luax_checkweldjoint(L, 1);
|
WeldJoint *t = luax_checkweldjoint(L, 1);
|
||||||
lua_pushnumber(L, t->getStiffness());
|
lua_pushnumber(L, t->getStiffness());
|
||||||
@@ -74,8 +74,8 @@ int w_WeldJoint_getReferenceAngle(lua_State *L)
|
|||||||
|
|
||||||
static const luaL_Reg w_WeldJoint_functions[] =
|
static const luaL_Reg w_WeldJoint_functions[] =
|
||||||
{
|
{
|
||||||
{ "setStiffness", w_WeldJoint_setStiffness },
|
{ "setFrequency", w_WeldJoint_setFrequency },
|
||||||
{ "getStiffness", w_WeldJoint_getStiffness },
|
{ "getFrequency", w_WeldJoint_getFrequency },
|
||||||
{ "setDampingRatio", w_WeldJoint_setDampingRatio },
|
{ "setDampingRatio", w_WeldJoint_setDampingRatio },
|
||||||
{ "getDampingRatio", w_WeldJoint_getDampingRatio },
|
{ "getDampingRatio", w_WeldJoint_getDampingRatio },
|
||||||
{ "getReferenceAngle", w_WeldJoint_getReferenceAngle },
|
{ "getReferenceAngle", w_WeldJoint_getReferenceAngle },
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ int w_WheelJoint_getMotorTorque(lua_State *L)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int w_WheelJoint_setSpringStiffness(lua_State *L)
|
int w_WheelJoint_setSpringFrequency(lua_State *L)
|
||||||
{
|
{
|
||||||
WheelJoint *t = luax_checkwheeljoint(L, 1);
|
WheelJoint *t = luax_checkwheeljoint(L, 1);
|
||||||
float arg1 = (float)luaL_checknumber(L, 2);
|
float arg1 = (float)luaL_checknumber(L, 2);
|
||||||
@@ -110,7 +110,7 @@ int w_WheelJoint_setSpringStiffness(lua_State *L)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int w_WheelJoint_getSpringStiffness(lua_State *L)
|
int w_WheelJoint_getSpringFrequency(lua_State *L)
|
||||||
{
|
{
|
||||||
WheelJoint *t = luax_checkwheeljoint(L, 1);
|
WheelJoint *t = luax_checkwheeljoint(L, 1);
|
||||||
lua_pushnumber(L, t->getStiffness());
|
lua_pushnumber(L, t->getStiffness());
|
||||||
@@ -150,8 +150,8 @@ static const luaL_Reg w_WheelJoint_functions[] =
|
|||||||
{ "setMaxMotorTorque", w_WheelJoint_setMaxMotorTorque },
|
{ "setMaxMotorTorque", w_WheelJoint_setMaxMotorTorque },
|
||||||
{ "getMaxMotorTorque", w_WheelJoint_getMaxMotorTorque },
|
{ "getMaxMotorTorque", w_WheelJoint_getMaxMotorTorque },
|
||||||
{ "getMotorTorque", w_WheelJoint_getMotorTorque },
|
{ "getMotorTorque", w_WheelJoint_getMotorTorque },
|
||||||
{ "setSpringStiffness", w_WheelJoint_setSpringStiffness },
|
{ "setSpringFrequency", w_WheelJoint_setSpringFrequency },
|
||||||
{ "getSpringStiffness", w_WheelJoint_getSpringStiffness },
|
{ "getSpringFrequency", w_WheelJoint_getSpringFrequency },
|
||||||
{ "setSpringDampingRatio", w_WheelJoint_setSpringDampingRatio },
|
{ "setSpringDampingRatio", w_WheelJoint_setSpringDampingRatio },
|
||||||
{ "getSpringDampingRatio", w_WheelJoint_getSpringDampingRatio },
|
{ "getSpringDampingRatio", w_WheelJoint_getSpringDampingRatio },
|
||||||
{ "getAxis", w_WheelJoint_getAxis },
|
{ "getAxis", w_WheelJoint_getAxis },
|
||||||
|
|||||||
Reference in New Issue
Block a user