Damped Oscillation
PureDampedOscillationGenerates a damped sine wave. Useful for hit reactions, screen shake decay, and spring effects.
Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Time | float | — | Time parameter |
| Amplitude | float | — | Amplitude parameter |
| Frequency | float | — | Frequency parameter |
| Damping | float | — | Damping parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | float | ReturnValue output |
Example Use Cases
Example 1
Screen shake that decays over time after explosion.
Example 2
A pendulum that gradually comes to rest.