updating the Joints

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-03-13 13:16:02 -04:00
parent be146c5f61
commit b4fae893fd
20 changed files with 50 additions and 205 deletions
+6 -6
View File
@@ -46,32 +46,32 @@ namespace box2d
void DistanceJoint::setLength(float length)
{
joint->m_length = world->scaleDown(length);
joint->SetLength(world->scaleDown(length));
}
float DistanceJoint::getLength() const
{
return world->scaleUp(joint->m_length);
return world->scaleUp(joint->GetLength());
}
void DistanceJoint::setFrequency(float hz)
{
joint->m_frequencyHz = hz;
joint->SetFrequency(hz);
}
float DistanceJoint::getFrequency() const
{
return joint->m_frequencyHz;
return joint->GetFrequency();
}
void DistanceJoint::setDampingRatio(float d)
{
joint->m_dampingRatio = d;
joint->SetDampingRatio(d);
}
float DistanceJoint::getDampingRatio() const
{
return joint->m_dampingRatio;
return joint->GetDampingRatio();
}