push the length threshold to 1e-30

This commit is contained in:
Stephen Birarda 2016-02-09 17:14:23 -08:00
parent a8841b475f
commit 26fd0c305a

View file

@ -169,7 +169,7 @@ float AudioMixer::azimuthForSource(const PositionalAudioStream& streamToAdd, con
// project the rotated source position vector onto the XZ plane
rotatedSourcePosition.y = 0.0f;
static const float SOURCE_DISTANCE_THRESHOLD = 1e-12f;
static const float SOURCE_DISTANCE_THRESHOLD = 1e-30f;
if (glm::length2(rotatedSourcePosition) > SOURCE_DISTANCE_THRESHOLD) {
// produce an oriented angle about the y-axis