Hello.
I want to create an ear ringing effect for grenades.
Here is what I did so far.
It works fine but I want to make something like this: Ears are not ringing from where that bomb explodes. I want to calculate these areas.
If the explosion happened within one of these areas, it should play the desired sound.
I tried to calculate it but I couldn't make a good progress. (See the commented lines before "float volu")
How can I calculate these areas? Or is there a better solution for ear ringing from where the greande explodes (without emitting sound from where the grenade was)?
Thanks in advance for your help.