Damped spring helper template.
Public Member Functions | |
| sDampedSpring () | |
| void | SetKd (TF aKd) |
| TF | GetKd () const |
| void | SetKs (TF aKs) |
| TF | GetKs () const |
| void | SetStiffnessAndDampingRatio (ni::tF32 aKs, ni::tF32 E) |
| void | SetDampingRatio (ni::tF32 E) |
| TF | GetDampingRatio () const |
| void | SetVelocity (TREF avVel) |
| T | GetVelocity () const |
| T | ComputeAcceleration (TREF avD) |
| void | UpdateVelocity (ni::tF32 afDeltaTime, TREF avD) |
| void | UpdateVelocityWithAcceleration (ni::tF32 afDeltaTime, TREF avAcc) |
Public Attributes | |
| T | mvVel |
| TF | mKs |
| TF | mKd |
| sDampedSpring | ( | ) |
| void SetKd | ( | TF | aKd | ) |
| TF GetKd | ( | ) | const |
| void SetKs | ( | TF | aKs | ) |
| TF GetKs | ( | ) | const |
| TF GetDampingRatio | ( | ) | const |
| void SetVelocity | ( | TREF | avVel | ) |
| T GetVelocity | ( | ) | const |
| T ComputeAcceleration | ( | TREF | avD | ) |
| T mvVel |
| TF mKs |
| TF mKd |
1.8.7