So I'm not sure if it's used in Dots, but in the CanDetectObject using Sound at line 25 in sound.cs
m_AudibilityThreshold does nothing, after searching through the whole project code that variable is never used.
Should this not be used on line 80 like this
if (targetSoundLevel > m_AudibilityThreshold){ // loudestAudioLevel) {
Also I think the GetSoundLevel math is wrong,
What I did was to insert a debug.log line at 112 to get the float being returned as TargetSoundLevel as well as the distance
So the sound level being returned at/near a certain distance doesn't seem to match up with the
Logarithmic curve, maybe I'm bing a little dense with this part, so some insight would be helpful.
as you can see in the pics,
at around 10 distance I'm getting a targetSoundLevel of 0.0053
but looking at the curve, I'm expecting to get a targetSoundLevel of something around 0.1-0.2
Thanks in advance
m_AudibilityThreshold does nothing, after searching through the whole project code that variable is never used.
Should this not be used on line 80 like this
if (targetSoundLevel > m_AudibilityThreshold){ // loudestAudioLevel) {
Also I think the GetSoundLevel math is wrong,
What I did was to insert a debug.log line at 112 to get the float being returned as TargetSoundLevel as well as the distance
So the sound level being returned at/near a certain distance doesn't seem to match up with the
Logarithmic curve, maybe I'm bing a little dense with this part, so some insight would be helpful.
as you can see in the pics,
at around 10 distance I'm getting a targetSoundLevel of 0.0053
but looking at the curve, I'm expecting to get a targetSoundLevel of something around 0.1-0.2
Thanks in advance