Skip to content

Mathf Distance Falloff

Calculates a linear falloff from distance, range, and strength. The result is strongest at distance 0 and falls to 0 at or beyond the range.

Parameter Description
Distance The distance to evaluate.
Range Distance where the result reaches zero.
Strength Maximum value returned at distance 0.
Result Store the result in a float variable.

See also