KROYSDOCS
HomeWhat's newv0.1.0
SCRIPTING API / Enums / AudioAttenuationModel

AudioAttenuationModel

Distance attenuation curve of a spatial AudioSource.

Kindenum
NamespaceKroys.EngineScripting
Members4
SourceNativeComponents.cs
DECLARATION

Declaration

Namespace Kroys.EngineScripting.

Declaration
public enum AudioAttenuationModel : uint
REFERENCE

Values

Values
#Smooth = 0
The original engine curve: 1 / (1 + rolloff * n^2 * 8).
value
#Linear = 1
Fades linearly to silence at the max distance.
value
#Inverse = 2
Inverse distance (min / (min + rolloff * (d - min))).
value
#Custom = 3
Piecewise linear through the custom curve (gains at 1/3, 2/3 and 1 of the range).
value
Signatures
Smooth = 0
Linear = 1
Inverse = 2
Custom = 3

KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.