Update WeldJoint for new soft constraint options

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-23 16:17:29 -04:00
parent 3c7310e76d
commit a956f9b0c1
4 changed files with 82 additions and 0 deletions
+22
View File
@@ -49,6 +49,28 @@ namespace box2d
virtual ~WeldJoint();
/**
* Sets the response speed.
**/
void setFrequency(float hz);
/**
* Gets the response speed.
**/
float getFrequency() const;
/**
* Sets the damping ratio.
* 0 = no damping, 1 = critical damping.
**/
void setDampingRatio(float d);
/**
* Gets the damping ratio.
* 0 = no damping, 1 = critical damping.
**/
float getDampingRatio() const;
};
} // box2d