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
@@ -86,22 +86,22 @@ void MouseJoint::setFrequency(float hz)
if (hz <= FLT_EPSILON * 2)
throw love::Exception("MouseJoint frequency must be a positive number.");
joint->SetFrequency(hz);
joint->SetStiffness(hz);
}
float MouseJoint::getFrequency() const
{
return joint->GetFrequency();
return joint->GetStiffness();
}
void MouseJoint::setDampingRatio(float d)
{
joint->SetDampingRatio(d);
joint->SetDamping(d);
}
float MouseJoint::getDampingRatio() const
{
return joint->GetDampingRatio();
return joint->GetDamping();
}
Body *MouseJoint::getBodyA() const