35 PretensionController::PretensionController(
double tensionPct) :
40 throw std::invalid_argument(
"Negative pretension");
48 throw std::invalid_argument(
"dt is not positive");
virtual void onStep(tgLinearString &subject, double dt)
void setRestLength(double newLength, float dt)
Contains the definition of class tgLinearString.
virtual const double getStartLength() const
Contains the definition of the class PretensonController.