Damped spring with position helper template.
Public Member Functions | |
| sDampedSpringPosition () | |
| void | SetSpeed (tF32 afSpeed) |
| tF32 | GetSpeed () const |
| void | SetStep (tF32 afStep) |
| tF32 | GetStep () const |
| void | SetIdealPosition (TREF avPos) |
| T | GetIdealPosition () const |
| void | SetCurrentPosition (TREF avPos) |
| T | GetCurrentPosition () const |
| void | SetEndThreshold (tF32 afEndThreshold) |
| tF32 | GetEndThreshold () const |
| tBool | GetIsEnded () const |
| T | UpdatePosition (ni::tF32 afDeltaTime) |
Public Member Functions inherited from sDampedSpring< T, TF, BASE, TREF > | |
| 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 | mvIdealPos |
| T | mvCurrentPos |
| tF32 | mfEndThreshold |
| tF32 | mfStep |
| tF32 | mfSpeed |
Public Attributes inherited from sDampedSpring< T, TF, BASE, TREF > | |
| T | mvVel |
| TF | mKs |
| TF | mKd |
| tF32 GetSpeed | ( | ) | const |
| tF32 GetStep | ( | ) | const |
| void SetIdealPosition | ( | TREF | avPos | ) |
| T GetIdealPosition | ( | ) | const |
| void SetCurrentPosition | ( | TREF | avPos | ) |
| T GetCurrentPosition | ( | ) | const |
| tF32 GetEndThreshold | ( | ) | const |
| tBool GetIsEnded | ( | ) | const |
| T UpdatePosition | ( | ni::tF32 | afDeltaTime | ) |
| T mvIdealPos |
| T mvCurrentPos |
| tF32 mfEndThreshold |
| tF32 mfStep |
| tF32 mfSpeed |
1.8.7