Skip to content
9 changes: 8 additions & 1 deletion content/en-us/reference/engine/enums/RollOffMode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,26 @@ items:
- name: Inverse
summary: |
Volume attenuates from `Class.Sound.RollOffMinDistance` in an inverse
manner. This option mirrors how sounds attenuate in the real world.
manner, mirroring how sounds attenuate in the real world.
This is done through `Class.Sound.RollOffMinDistance`/`distance`,
where `distance` is the `Datatype.Vector3.Magnitude` between the audio source and the audio listener.
value: 0
tags: []
deprecation_message: ''
- name: Linear
summary: |
Volume attenuates between `Class.Sound.RollOffMinDistance` and
`Class.Sound.RollOffMaxDistance` with a linear relationship.
This is done through (`Class.Sound.RollOffMaxDistance`/`distance`)/(`Class.Sound.RollOffMaxDistance`-`Class.Sound.RollOffMinDistance`),
where `distance` is the `Datatype.Vector3.Magnitude` between the audio source and the audio listener.
value: 1
tags: []
deprecation_message: ''
- name: LinearSquare
summary: |
Volume attenuates between `Class.Sound.RollOffMinDistance` and
`Class.Sound.RollOffMaxDistance` with a linear squared relationship.
This is done through squaring `Linear`.
value: 2
tags: []
deprecation_message: ''
Expand All @@ -38,6 +43,8 @@ items:
A hybrid model which follows the `Inverse` model when close to
`Class.Sound.RollOffMinDistance` and the `LinearSquare` model when close
to `Class.Sound.RollOffMaxDistance`.
This is done through `Libraries.math.min`((`Class.Sound.RollOffMinDistance`/`distance`)*`LinearSquare`),
where `distance` is the `Datatype.Vector3.Magnitude` between the audio source and the audio listener.
value: 3
tags: []
deprecation_message: ''
Loading