Re: Sound Libraries in python

OK, here is what is happening: (4, 5) is considered to be slightly behind the listener so the result is divided by 2. The code is correct but a bit brutal: it's 0.5 instead of 1.0 if you cross the line. Something smoother can be done.

To have a less surprising behavior while keeping the brutal transition:

    if int(math.cos(a)) < 0: # behind

or

    if math.cos(a) < -.1: # behind

URL: http://forum.audiogames.net/viewtopic.php?pid=178394#p178394


_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Off-topic room : haqeirah via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : frastlin via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : frastlin via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : frastlin via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : SoundMUD via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : SoundMUD via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : SoundMUD via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : SoundMUD via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : haqeirah via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : frastlin via Audiogames-reflector

Reply via email to