Method DistanceDecay
DistanceDecay(float)
Calculate the the decay applicable at a given distance from the impact point
Declaration
public float DistanceDecay(float distance)
Parameters
Type | Name | Description |
---|---|---|
float | distance | The distance over which to perform the decay |
Returns
Type | Description |
---|---|
float | Scale factor 0...1 |