mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Changed function names of love.physics to match Box2D.
This commit is contained in:
@@ -48,12 +48,12 @@ namespace box2d
|
||||
joint = 0;
|
||||
}
|
||||
|
||||
float PrismaticJoint::getTranslation() const
|
||||
float PrismaticJoint::getJointTranslation() const
|
||||
{
|
||||
return world->scaleDown(joint->GetJointTranslation());
|
||||
}
|
||||
|
||||
float PrismaticJoint::getSpeed() const
|
||||
float PrismaticJoint::getJointSpeed() const
|
||||
{
|
||||
return world->scaleDown(joint->GetJointSpeed());
|
||||
}
|
||||
@@ -75,7 +75,7 @@ namespace box2d
|
||||
|
||||
float PrismaticJoint::getMaxMotorForce() const
|
||||
{
|
||||
return joint->GetMotorForce();
|
||||
return joint->m_maxMotorForce;
|
||||
}
|
||||
|
||||
void PrismaticJoint::setMotorSpeed(float speed)
|
||||
|
||||
Reference in New Issue
Block a user