Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RollOffMode.yaml to add the mathematical formulas for RolloffM… #935

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
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 (`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