# Audio radar in Unity

**URL:** <https://qa.fmod.com/t/audio-radar-in-unity/16539>\
**Category:** Unity\
**Created:** [December 10, 2020, 2:16pm UTC](https://qa.fmod.com/t/audio-radar-in-unity/16539 "2020-12-10T14:16:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiririn39](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kiririn39](https://qa.fmod.com/u/kiririn39)\
**Post date:** [December 10, 2020, 2:16pm UTC](https://qa.fmod.com/t/audio-radar-in-unity/16539/1 "2020-12-10T14:16:16Z")

</div>

Hi guys. I would like to create an audio radar for my 3rd person mobile game. This feature is designed for player who don’t want to use headphones. My idea is simple: player has “circle” around his legs. This circle should respond to sound like footsteps, explosions etc. Player should be able to “recognise” sounds source and distance based on spectrum and amplitude visualization. So far i have only achieved spectrum visualization without direction for a single sound instance and it’s already creates heavy load on FPS.

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [December 18, 2020, 12:35am UTC](https://qa.fmod.com/t/audio-radar-in-unity/16539/2 "2020-12-18T00:35:54Z")

</div>

What exactly are you having trouble with?

---

<div class="post-metadata">

**Author:** ![kiririn39](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kiririn39](https://qa.fmod.com/u/kiririn39)\
**Post date:** [December 21, 2020, 10:47am UTC](https://qa.fmod.com/t/audio-radar-in-unity/16539/3 "2020-12-21T10:47:13Z")

</div>

As workaround, i have created extenshion method on PlayOneshot(). Besides the usual functionality, it saves a link to the position of the sound is singleton class.  
Is there a way to find out where the player(audioListenr) hears the sound from(direction) using FMOD utilities or i should stick to my solution?

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [January 8, 2021, 12:07am UTC](https://qa.fmod.com/t/audio-radar-in-unity/16539/4 "2021-01-08T00:07:35Z")

</div>

If you are looking for something like a vector between each Sound and the listener, this is something you would need to calculate. Event emitters receive their position from the attached game object, so you could do that too.
