mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Joint:enableMotor -> Joint:setMotorEnabled, Joint:enableLimit -> Joint:setLimitsEnabled, Joint:isLimitEnabled -> Joint:hasLimitsEnabled. Resolves issue #691.
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user