diff options
author | Chris Robinson <[email protected]> | 2021-05-25 14:08:16 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-05-25 14:08:16 -0700 |
commit | 58a9549a5886fe91aba698abb4e6e4c0c94f129e (patch) | |
tree | 9b6dc836e64496f6dffbc8070874ef5ce4f21a09 /core/context.h | |
parent | 62e6ce6d7322bc83ba3150316d9c921f5fadbb99 (diff) |
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.
Diffstat (limited to 'core/context.h')
-rw-r--r-- | core/context.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<ContextProps*> ContextUpdate{nullptr}; std::atomic<ListenerProps*> ListenerUpdate{nullptr}; + alu::Vector Position{}; alu::Matrix Matrix{alu::Matrix::Identity()}; alu::Vector Velocity{}; |