Move Toward
PureMoveTowardMoves Current toward Target by at most MaxDelta. Will not overshoot.
Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Current | float | — | Current parameter |
| Target | float | — | Target parameter |
| MaxDelta | float | — | MaxDelta parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | float | ReturnValue output |
Example Use Cases
Example 1
Frame-rate-independent value chasing (health bar fill).
Example 2
Gradual volume adjustment.