Expose box2d’s RopeJoint::SetMaxLength().

--HG--
branch : fb_add_ropejoint_setmaxlength
This commit is contained in:
Bill Clagett
2016-11-20 23:00:22 -05:00
parent b084934311
commit ead4186734
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -59,6 +59,10 @@ float RopeJoint::getMaxLength() const
return Physics::scaleUp(joint->GetMaxLength());
}
void RopeJoint::setMaxLength(float maxLength)
{
joint->SetMaxLength(Physics::scaleDown(maxLength));
}
} // box2d
} // physics