AudioDistanceModel

enum Force.AudioDistanceModel

Description

Affects only on 3D clips. This affects how listener will hear source relative to its position in 3D space. The model by which sources attenuate with distance.

Properties

None

No distance attenuation.

InversedDistance

Doubling the distance halves the source gain.

InversedDistanceClamped

Clamped version of 'InversedDistance'. Distance calculated is clamped between the reference and max distances.

LinearDistance

Linear gain scaling between the reference and max distances.

LinearDistanceClamped

Clamped version of 'LinearDistance'. Distance calculated is clamped between the reference and max distances.

ExponentDistance

Exponential gain dropoff.

ExponentDistanceClamped

Clamped version of 'ExponentDistance'. Distance calculated is clamped between the reference and max distances.

See Also

AudioSource

Last updated