Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How is Volume Attenuation Calculated for 3D Sounds?

Asked by 2 years ago

Hello,

I am trying to create a function where I can basically get the estimated volume of a 3D sound in the environment at a certain position, which takes into account the so-called "volume attenuation". The Sound Instance has many properties that can affect this calculation, such as the Sound.EmitterSize, Sound.RollOffMode, etc. However, I can't seem to find any resource, Roblox related and non-Roblox related, that showed any equation and its variables/calculations. The Roblox Developer Hub only tells you very little about the variables used, but not anything else.

Thanks!

0
i think u want to make the sound slightly smaller when the player get far away?If thats what you wanna achive,this site might help https://developer.roblox.com/en-us/api-reference/property/Sound/EmitterSize lamgogo 56 — 2y

1 answer

Log in to vote
0
Answered by
xXMadonXx 190
2 years ago
Edited 2 years ago

I think you want this: RollOffDistance (Creator Docs Link)

Ad

Answer this question