Re: Achieving sound rotation using PySFML?

Never used open al for rotation before, and I know how the functions work, but not what math to put in them to set the player's direction. I thought that I'd put something like this
Degs #this stores the direction in degrees the player is facing.
sf.listener.set_direction(math.sin(math.radians(degs)), math.sin(math.radians(degs)), math.cos(math.radians(degs)))
Because the function is x, z, y.

  Is that correct code? I thought it would be.

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : severestormsteve1 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : sneak via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : severestormsteve1 via Audiogames-reflector

Reply via email to