diff --git a/src/modules/physics/box2d/wrap_DistanceJoint.cpp b/src/modules/physics/box2d/wrap_DistanceJoint.cpp index 1885d2d04..242e555b2 100644 --- a/src/modules/physics/box2d/wrap_DistanceJoint.cpp +++ b/src/modules/physics/box2d/wrap_DistanceJoint.cpp @@ -50,7 +50,7 @@ int w_DistanceJoint_getLength(lua_State *L) return 1; } -int w_DistanceJoint_setStiffness(lua_State *L) +int w_DistanceJoint_setFrequency(lua_State *L) { DistanceJoint *t = luax_checkdistancejoint(L, 1); float arg1 = (float)luaL_checknumber(L, 2); @@ -58,7 +58,7 @@ int w_DistanceJoint_setStiffness(lua_State *L) return 0; } -int w_DistanceJoint_getStiffness(lua_State *L) +int w_DistanceJoint_getFrequency(lua_State *L) { DistanceJoint *t = luax_checkdistancejoint(L, 1); lua_pushnumber(L, t->getStiffness()); @@ -84,8 +84,8 @@ static const luaL_Reg w_DistanceJoint_functions[] = { { "setLength", w_DistanceJoint_setLength }, { "getLength", w_DistanceJoint_getLength }, - { "setStiffness", w_DistanceJoint_setStiffness }, - { "getStiffness", w_DistanceJoint_getStiffness }, + { "setFrequency", w_DistanceJoint_setFrequency }, + { "getFrequency", w_DistanceJoint_getFrequency }, { "setDampingRatio", w_DistanceJoint_setDampingRatio }, { "getDampingRatio", w_DistanceJoint_getDampingRatio }, { 0, 0 } diff --git a/src/modules/physics/box2d/wrap_MouseJoint.cpp b/src/modules/physics/box2d/wrap_MouseJoint.cpp index 0e9a3b333..f30e7c9f4 100644 --- a/src/modules/physics/box2d/wrap_MouseJoint.cpp +++ b/src/modules/physics/box2d/wrap_MouseJoint.cpp @@ -66,7 +66,7 @@ int w_MouseJoint_getMaxForce(lua_State *L) return 1; } -int w_MouseJoint_setStiffness(lua_State *L) +int w_MouseJoint_setFrequency(lua_State *L) { MouseJoint *t = luax_checkmousejoint(L, 1); float arg1 = (float)luaL_checknumber(L, 2); @@ -74,7 +74,7 @@ int w_MouseJoint_setStiffness(lua_State *L) return 0; } -int w_MouseJoint_getStiffness(lua_State *L) +int w_MouseJoint_getFrequency(lua_State *L) { MouseJoint *t = luax_checkmousejoint(L, 1); lua_pushnumber(L, t->getStiffness()); @@ -102,8 +102,8 @@ static const luaL_Reg w_MouseJoint_functions[] = { "getTarget", w_MouseJoint_getTarget }, { "setMaxForce", w_MouseJoint_setMaxForce }, { "getMaxForce", w_MouseJoint_getMaxForce }, - { "setStiffness", w_MouseJoint_setStiffness }, - { "getStiffness", w_MouseJoint_getStiffness }, + { "setFrequency", w_MouseJoint_setFrequency }, + { "getFrequency", w_MouseJoint_getFrequency }, { "setDampingRatio", w_MouseJoint_setDampingRatio }, { "getDampingRatio", w_MouseJoint_getDampingRatio }, { 0, 0 } diff --git a/src/modules/physics/box2d/wrap_WeldJoint.cpp b/src/modules/physics/box2d/wrap_WeldJoint.cpp index 123e36e37..e1e960159 100644 --- a/src/modules/physics/box2d/wrap_WeldJoint.cpp +++ b/src/modules/physics/box2d/wrap_WeldJoint.cpp @@ -35,7 +35,7 @@ WeldJoint *luax_checkweldjoint(lua_State *L, int idx) return j; } -int w_WeldJoint_setStiffness(lua_State *L) +int w_WeldJoint_setFrequency(lua_State *L) { WeldJoint *t = luax_checkweldjoint(L, 1); float arg1 = (float)luaL_checknumber(L, 2); @@ -43,7 +43,7 @@ int w_WeldJoint_setStiffness(lua_State *L) return 0; } -int w_WeldJoint_getStiffness(lua_State *L) +int w_WeldJoint_getFrequency(lua_State *L) { WeldJoint *t = luax_checkweldjoint(L, 1); lua_pushnumber(L, t->getStiffness()); @@ -74,8 +74,8 @@ int w_WeldJoint_getReferenceAngle(lua_State *L) static const luaL_Reg w_WeldJoint_functions[] = { - { "setStiffness", w_WeldJoint_setStiffness }, - { "getStiffness", w_WeldJoint_getStiffness }, + { "setFrequency", w_WeldJoint_setFrequency }, + { "getFrequency", w_WeldJoint_getFrequency }, { "setDampingRatio", w_WeldJoint_setDampingRatio }, { "getDampingRatio", w_WeldJoint_getDampingRatio }, { "getReferenceAngle", w_WeldJoint_getReferenceAngle }, diff --git a/src/modules/physics/box2d/wrap_WheelJoint.cpp b/src/modules/physics/box2d/wrap_WheelJoint.cpp index 1ea4e9549..021fb675a 100644 --- a/src/modules/physics/box2d/wrap_WheelJoint.cpp +++ b/src/modules/physics/box2d/wrap_WheelJoint.cpp @@ -102,7 +102,7 @@ int w_WheelJoint_getMotorTorque(lua_State *L) return 1; } -int w_WheelJoint_setSpringStiffness(lua_State *L) +int w_WheelJoint_setSpringFrequency(lua_State *L) { WheelJoint *t = luax_checkwheeljoint(L, 1); float arg1 = (float)luaL_checknumber(L, 2); @@ -110,7 +110,7 @@ int w_WheelJoint_setSpringStiffness(lua_State *L) return 0; } -int w_WheelJoint_getSpringStiffness(lua_State *L) +int w_WheelJoint_getSpringFrequency(lua_State *L) { WheelJoint *t = luax_checkwheeljoint(L, 1); lua_pushnumber(L, t->getStiffness()); @@ -150,8 +150,8 @@ static const luaL_Reg w_WheelJoint_functions[] = { "setMaxMotorTorque", w_WheelJoint_setMaxMotorTorque }, { "getMaxMotorTorque", w_WheelJoint_getMaxMotorTorque }, { "getMotorTorque", w_WheelJoint_getMotorTorque }, - { "setSpringStiffness", w_WheelJoint_setSpringStiffness }, - { "getSpringStiffness", w_WheelJoint_getSpringStiffness }, + { "setSpringFrequency", w_WheelJoint_setSpringFrequency }, + { "getSpringFrequency", w_WheelJoint_getSpringFrequency }, { "setSpringDampingRatio", w_WheelJoint_setSpringDampingRatio }, { "getSpringDampingRatio", w_WheelJoint_getSpringDampingRatio }, { "getAxis", w_WheelJoint_getAxis },