mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
updating the Joints
--HG-- branch : box2d-update
This commit is contained in:
@@ -46,32 +46,32 @@ namespace box2d
|
||||
|
||||
void DistanceJoint::setLength(float length)
|
||||
{
|
||||
joint->m_length = world->scaleDown(length);
|
||||
joint->SetLength(world->scaleDown(length));
|
||||
}
|
||||
|
||||
float DistanceJoint::getLength() const
|
||||
{
|
||||
return world->scaleUp(joint->m_length);
|
||||
return world->scaleUp(joint->GetLength());
|
||||
}
|
||||
|
||||
void DistanceJoint::setFrequency(float hz)
|
||||
{
|
||||
joint->m_frequencyHz = hz;
|
||||
joint->SetFrequency(hz);
|
||||
}
|
||||
|
||||
float DistanceJoint::getFrequency() const
|
||||
{
|
||||
return joint->m_frequencyHz;
|
||||
return joint->GetFrequency();
|
||||
}
|
||||
|
||||
void DistanceJoint::setDampingRatio(float d)
|
||||
{
|
||||
joint->m_dampingRatio = d;
|
||||
joint->SetDampingRatio(d);
|
||||
}
|
||||
|
||||
float DistanceJoint::getDampingRatio() const
|
||||
{
|
||||
return joint->m_dampingRatio;
|
||||
return joint->GetDampingRatio();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user