|
| | SecondOrder () |
| | Construct a stage at rest with indeterminate spring parameters.
|
| | SecondOrder (float flLevel, float flSpring, float flDamper) |
| | Construct a stage at rest with all three parameters set.
|
| virtual float | Apply (float flValue) |
| | Integrate the spring and the damper by one step.
|
| virtual float | Unapply (float flValue) |
| | Report the mLevel that preceded the last Apply().
|
| virtual void | Print (Dbg &sink) const |
| | Write "(level:%.2f spring:%.2f damper:)%.2f vel%.2f" to sink.
|
| virtual void | Save (Stream &stream) |
| | Write the three spring parameters to stream, the velocity excluded.
|
| virtual void | Load (Stream &stream) |
| | Read the three spring parameters from stream, the velocity excluded.
|
| virtual int | Type () |
| | Report kFilterSecondOrder.
|
| virtual void | Copy (const Filter *pSource) |
| | Copy all four members from pSource.
|
Filter stage that drives the value with a spring and a damper.
Its RTTI descriptor is at 0x008eefa8. It derives publicly from Filter at offset 0. The object is 0x14 bytes, and its vtable is at 0x0081e860.
The stage is stateful in two members. mLevel is the running output and mVel the running velocity. Each Apply() accelerates the velocity towards the incoming value and then integrates it once.
| virtual void Rnd::Animatable::SecondOrder::Print |
( |
Dbg & | sink | ) |
const |
|
virtual |
Write "(level:%.2f spring:%.2f damper:)%.2f vel%.2f" to sink.
The closing bracket lands one call too early in the binary, in front of the damper value instead of after the velocity, and the " vel" label has no colon. Both are faults of the original text rather than of the recovery.
- Parameters
-
| sink | The diagnostic sink to write to. |
- Ghidra address:
- NTSC-U/C: 0x00499700
- Ghidra address:
- PAL: 0x004d7660
Implements Rnd::Animatable::Filter.