Starting box2d update

This commit is contained in:
Garrett Brown
2020-08-16 06:34:37 -04:00
parent 365387150e
commit 74c6021e8d
153 changed files with 9634 additions and 8518 deletions
+4 -4
View File
@@ -68,22 +68,22 @@ void WeldJoint::init(b2WeldJointDef &def, Body *body1, Body *body2, float xA, fl
void WeldJoint::setFrequency(float hz)
{
joint->SetFrequency(hz);
joint->SetStiffness(hz);
}
float WeldJoint::getFrequency() const
{
return joint->GetFrequency();
return joint->GetStiffness();
}
void WeldJoint::setDampingRatio(float d)
{
joint->SetDampingRatio(d);
joint->SetDamping(d);
}
float WeldJoint::getDampingRatio() const
{
return joint->GetDampingRatio();
return joint->GetDamping();
}
float WeldJoint::getReferenceAngle() const