more joint updates to better match the API

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-07-02 11:46:42 -05:00
parent b4fae893fd
commit b3434997bf
15 changed files with 122 additions and 40 deletions
+20
View File
@@ -69,6 +69,26 @@ namespace box2d
{
return joint->GetMaxForce();
}
void MouseJoint::setFrequency(float hz)
{
joint->SetFrequency(hz);
}
float MouseJoint::getFrequency() const
{
return joint->GetFrequency();
}
void MouseJoint::setDampingRatio(float d)
{
joint->SetDampingRatio(d);
}
float MouseJoint::getDampingRatio() const
{
return joint->GetDampingRatio();
}
} // box2d
} // physics