Update WeldJoint for new soft constraint options

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-23 16:17:29 -04:00
parent 3c7310e76d
commit a956f9b0c1
4 changed files with 82 additions and 0 deletions
+20
View File
@@ -47,6 +47,26 @@ namespace box2d
destroyJoint(joint);
joint = 0;
}
void WeldJoint::setFrequency(float hz)
{
joint->SetFrequency(hz);
}
float WeldJoint::getFrequency() const
{
return joint->GetFrequency();
}
void WeldJoint::setDampingRatio(float d)
{
joint->SetDampingRatio(d);
}
float WeldJoint::getDampingRatio() const
{
return joint->GetDampingRatio();
}
} // box2d
} // physics