#include <springsys.h>
Public Member Functions |
|
SSSpring () | |
SSSpring (SSConstraintPoint *b, Point3 l, float t=2.0f, float d=1.0f) | |
SSSpring & | operator= (const SSSpring &from) |
SSSpring | Copy (const SSSpring from) |
float | GetTension () |
void | SetTension (float t) |
float | GetDampening () |
void | SetDampening (float d) |
Point3 | GetLength () |
void | SetLength (Point3 len) |
SSConstraintPoint * | GetPointConstraint () |
void | SetPointConstraint (SSConstraintPoint b) |
void | SetPointConstraint (int id, Point3 pos, Point3 vel) |
SSSpring | ( | ) | [inline] |
SSSpring | ( | SSConstraintPoint * | b, |
Point3 | l, | ||
float | t = 2.0f , |
||
float | d = 1.0f |
||
) | [inline] |
{ bone = *b; length = l; tension = t; dampening = d; }
{ tension = from.tension; dampening = from.dampening; length = from.length; bone = from.bone; return *this; }
{ tension = from.tension; dampening = from.dampening; length = from.length; bone = from.bone; return *this; }
float GetTension | ( | ) | [inline] |
void SetTension | ( | float | t | ) | [inline] |
{tension = t;}
float GetDampening | ( | ) | [inline] |
void SetDampening | ( | float | d | ) | [inline] |
{dampening = d;}
Point3 GetLength | ( | ) | [inline] |
void SetLength | ( | Point3 | len | ) | [inline] |
{length = len;}
SSConstraintPoint* GetPointConstraint | ( | ) | [inline] |
void SetPointConstraint | ( | SSConstraintPoint | b | ) | [inline] |
{ bone = b; }