Damped Oscillation

Pure
DampedOscillation

Generates 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

NameTypeDefaultDescription
TimefloatTime parameter
AmplitudefloatAmplitude parameter
FrequencyfloatFrequency parameter
DampingfloatDamping parameter

Outputs

NameTypeDescription
ReturnValuefloatReturnValue output

Example Use Cases

Example 1

Screen shake that decays over time after explosion.

Example 2

A pendulum that gradually comes to rest.