Audio Sense - (a little bit more realistic than a simple collider)

Hi there!

Just wanted to know if anyone wants to try this asset before get public. Is a simple and easy way to get a more realistic audio sense for AI characters or whatever. It uses the audiosource/s you add to a list that your character has attached and from the audio data of these audiosources it will resize dinamicaly a spherecollider to trigger any object in range. You can use Unity Event System to send messages to these objects and filter them by LayerMask, by Tag or by component name.
The setup is quite easy. Yo just add the script, fill the list with the audiosources you want. Then tweak some values like the size multiplier, min and max size values and smoothnes. Then, the only thing is set up the trigger event. Click on the add event (+) button and set the AudioSense function SendMessageToTriggeEvent from the drop down list.

Of corse it is quite dificult to make this fit to all projects and needs, but i think it can do for almost everyone. If not, you can add the functions you need to the script and that’s it.

Here is a picture of the inspector view:

If anyone wants to try it, please let me know by posting here or sending a PM or email.

Thanks a lot!

1 Like

Hi,
I’ve fixed a couple of errors and now i think is ready for testing.
I’m making a step by step tutorial video too, to give you a better idea of how the Script works. I think tomorrow will be uploaded, so, again, if anyone wants to give it a try, just let me know!

Cheers!

And her is the Tutorial. I’ve changed a few things, but now it is better. Now we don’t need to use triggers or rigidbodies.

Take a look, and feel free to ask or coment whatever.

Thanks!

Hey I’ve been looking out for this for a while, any updates?

1 Like

Hi, nobody tried it out yet, so no changes. If you want it, let me know and i’ll send you the scripts.

Thanks for following it. :wink: