SCRIPTING API / Enums / AudioAttenuationModel
AudioAttenuationModel
Distance attenuation curve of a spatial AudioSource.
Kindenum
NamespaceKroys.EngineScripting
Members4
Source
NativeComponents.csDECLARATION
Declaration
Namespace Kroys.EngineScripting.
Declaration
public enum AudioAttenuationModel : uint
REFERENCE
Values
Values
#Smooth = 0The original engine curve: 1 / (1 + rolloff * n^2 * 8).
#Linear = 1Fades linearly to silence at the max distance.
#Inverse = 2Inverse distance (min / (min + rolloff * (d - min))).
#Custom = 3Piecewise linear through the custom curve (gains at 1/3, 2/3 and 1 of the range).
Signatures
Smooth = 0 Linear = 1 Inverse = 2 Custom = 3
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.