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