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