# Confusion about 2d distance and direction parameters

**URL:** https://qa.fmod.com/t/confusion-about-2d-distance-and-direction-parameters/16860
**Category:** Unity
**Created:** [March 11, 2021, 12:51pm UTC](https://qa.fmod.com/t/confusion-about-2d-distance-and-direction-parameters/16860 "2021-03-11T12:51:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mikenigro](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@mikenigro](https://qa.fmod.com/u/mikenigro)
#### Post date: [March 11, 2021, 12:51pm UTC](https://qa.fmod.com/t/confusion-about-2d-distance-and-direction-parameters/16860/1 "2021-03-11T12:51:38Z")

</div>

Hi, i was trying to make a sound play louder as you get closer, but i after setting it up in fmod, it doesn’t seem to work properly during playtesting, after some googling i think the problem might be that my game is working using the XY axis and not the XZ, but i’m not sure.

---

<div class="post-metadata">

### Author: ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)
#### Post date: [March 11, 2021, 8:47pm UTC](https://qa.fmod.com/t/confusion-about-2d-distance-and-direction-parameters/16860/2 "2021-03-11T20:47:58Z")

</div>

We indeed had some problems using x,y instead of x,z, but it was essentially panning problems (I think there’s a bug but it hasn’t been confirmed by the staff). I don’t remember if the attenuation was correct at that time, though. Instead of changing your coordinates, you could change the left-handed system to right-handed and see if it changes anything.  
How did you configure min/max distance and sound size?

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [March 17, 2021, 12:36am UTC](https://qa.fmod.com/t/confusion-about-2d-distance-and-direction-parameters/16860/3 "2021-03-17T00:36:01Z")

</div>

Could you please provide a bit more information on what you mean by it doesn’t work properly?

If you believe this could be an XY vs XZ issue, my initial thought is that the FMOD Listener is not oriented correctly, perhaps facing the ground?
