mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Starting box2d update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user