mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Joint:enableMotor -> Joint:setMotorEnabled, Joint:enableLimit -> Joint:setLimitsEnabled, Joint:isLimitEnabled -> Joint:hasLimitsEnabled. Resolves issue #691.
This commit is contained in:
@@ -58,9 +58,9 @@ float RevoluteJoint::getJointSpeed() const
|
||||
return joint->GetJointSpeed();
|
||||
}
|
||||
|
||||
void RevoluteJoint::enableMotor(bool motor)
|
||||
void RevoluteJoint::setMotorEnabled(bool enable)
|
||||
{
|
||||
return joint->EnableMotor(motor);
|
||||
return joint->EnableMotor(enable);
|
||||
}
|
||||
|
||||
bool RevoluteJoint::isMotorEnabled() const
|
||||
@@ -93,12 +93,12 @@ float RevoluteJoint::getMaxMotorTorque() const
|
||||
return Physics::scaleUp(Physics::scaleUp(joint->GetMaxMotorTorque()));
|
||||
}
|
||||
|
||||
void RevoluteJoint::enableLimit(bool limit)
|
||||
void RevoluteJoint::setLimitsEnabled(bool enable)
|
||||
{
|
||||
joint->EnableLimit(limit);
|
||||
joint->EnableLimit(enable);
|
||||
}
|
||||
|
||||
bool RevoluteJoint::isLimitEnabled() const
|
||||
bool RevoluteJoint::hasLimitsEnabled() const
|
||||
{
|
||||
return joint->IsLimitEnabled();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user