Joint:enableMotor -> Joint:setMotorEnabled, Joint:enableLimit -> Joint:setLimitsEnabled, Joint:isLimitEnabled -> Joint:hasLimitsEnabled. Resolves issue #691.

This commit is contained in:
Alex Szpakowski
2013-10-24 17:30:41 -03:00
parent cbd1e6937b
commit 74ac2820cd
12 changed files with 48 additions and 48 deletions
@@ -49,11 +49,11 @@ int w_WheelJoint_getJointSpeed(lua_State *L)
return 1;
}
int w_WheelJoint_enableMotor(lua_State *L)
int w_WheelJoint_setMotorEnabled(lua_State *L)
{
WheelJoint *t = luax_checkwheeljoint(L, 1);
bool arg1 = luax_toboolean(L, 2);
t->enableMotor(arg1);
t->setMotorEnabled(arg1);
return 0;
}
@@ -136,7 +136,7 @@ static const luaL_Reg functions[] =
{
{ "getJointTranslation", w_WheelJoint_getJointTranslation },
{ "getJointSpeed", w_WheelJoint_getJointSpeed },
{ "enableMotor", w_WheelJoint_enableMotor },
{ "setMotorEnabled", w_WheelJoint_setMotorEnabled },
{ "isMotorEnabled", w_WheelJoint_isMotorEnabled },
{ "setMotorSpeed", w_WheelJoint_setMotorSpeed },
{ "getMotorSpeed", w_WheelJoint_getMotorSpeed },