From 58a9549a5886fe91aba698abb4e6e4c0c94f129e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 25 May 2021 14:08:16 -0700 Subject: Handle the listener position separate from the rotation matrix It's too unstable with larger vectors. Even when the source and listener positions are the same, floating point precision can cause noticeable rounding errors. --- core/context.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/context.h') diff --git a/core/context.h b/core/context.h index bf439053..155ee167 100644 --- a/core/context.h +++ b/core/context.h @@ -79,6 +79,7 @@ struct ContextParams { std::atomic ContextUpdate{nullptr}; std::atomic ListenerUpdate{nullptr}; + alu::Vector Position{}; alu::Matrix Matrix{alu::Matrix::Identity()}; alu::Vector Velocity{}; -- cgit v1.2.3