mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Starting box2d update
This commit is contained in:
@@ -58,22 +58,22 @@ float DistanceJoint::getLength() const
|
||||
|
||||
void DistanceJoint::setFrequency(float hz)
|
||||
{
|
||||
joint->SetFrequency(hz);
|
||||
joint->SetStiffness(hz);
|
||||
}
|
||||
|
||||
float DistanceJoint::getFrequency() const
|
||||
{
|
||||
return joint->GetFrequency();
|
||||
return joint->GetStiffness();
|
||||
}
|
||||
|
||||
void DistanceJoint::setDampingRatio(float d)
|
||||
{
|
||||
joint->SetDampingRatio(d);
|
||||
joint->SetDamping(d);
|
||||
}
|
||||
|
||||
float DistanceJoint::getDampingRatio() const
|
||||
{
|
||||
return joint->GetDampingRatio();
|
||||
return joint->GetDamping();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user