Re: A problem with sound positioning

2016-11-17 Thread AudioGames . net Forum — Developers room : severestormsteve1 via Audiogames-reflector
Re: A problem with sound positioning I used this, and gave it a test: it appears to be working just fine. Basically I ended up rotating the sound source around the listener's vector, found in the topic I mentioned in post 3 on post 34.def position_sound(handle, x, y, z, listener_x

Re: A problem with sound positioning

2016-11-16 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: A problem with sound positioning Well, a divide by zero error only crops up when you divide X by 0, not when you divide 0 by X. So in that example it seems like the only point at which it could happen because the if statement allows the second variable, temp2, to be zero when allowing

Re: A problem with sound positioning

2016-11-16 Thread AudioGames . net Forum — Developers room : severestormsteve1 via Audiogames-reflector
Re: A problem with sound positioning I followed the instructions inhttp://forum.audiogames.net/viewtopic.php?id=7458If that helps any URL: http://forum.audiogames.net/viewtopic.php?pid=286090#p286090 ___ Audiogames-reflector mailing list

Re: A problem with sound positioning

2016-11-16 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: A problem with sound positioning I think the problem might be here:if temp2<=0: absolutetheta=math.atan(temp1/temp2)+3.14Here your if statement checks if temp2 is less than or equal! to zero, which can create the possibility of a divide by zero error in your divis

A problem with sound positioning

2016-11-16 Thread AudioGames . net Forum — Developers room : severestormsteve1 via Audiogames-reflector
A problem with sound positioning Hi guys,I get a division by zero error, when I try to use the below sound positioning code. The division by zero error only occurs, or seems to anyway, when my x is the same as the sound source's x. Here is the functiondef position_sound(handle, x, y, z