Calculate Attenuation Factor
PureCalculateAttenuationFactorCalculates an attenuation factor based on distance with configurable falloff curve.
Type: Pure (no side effects)
Category: Fortuna|Audio Helpers
Keywords: audio helpers
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Distance | float | — | Distance parameter |
| MinDistance | float | — | MinDistance parameter |
| MaxDistance | float | — | MaxDistance parameter |
| FalloffExponent | float | 1.0 | FalloffExponent parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | float 0-1 | ReturnValue output |
Example Use Cases
Example 1
Custom audio falloff calculation.
Example 2
Scale visual effects by distance.