Enumeration DistanceModelType

Index

Enumeration members

Enumeration members

public exponential: DistanceModelType

An exponential distance model which calculates distanceGain according to: pow(distance / refDistance, -rolloffFactor)

public inverse: DistanceModelType

An inverse distance model which calculates distanceGain according to: refDistance / (refDistance + rolloffFactor * (distance - refDistance))

public linear: DistanceModelType

A linear distance model which calculates distanceGain according to: 1 - rolloffFactor * (distance - refDistance) / (maxDistance - refDistance)