This sound engine calculates the left right pan as well as the distance of the sound to the observer, this was harder to make than you'd think!