Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How is Volume Attenuation Calculated for 3D Sounds?

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!

1 comment

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

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.