From 27717cb1b0ead088043772b2a195a706e9e52efe Mon Sep 17 00:00:00 2001 From: kj16609 Date: Thu, 22 Feb 2024 00:35:20 -0500 Subject: [PATCH] Temporary fix for roll inversion --- src/engine/math/taitBryanMatrix.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/math/taitBryanMatrix.cpp b/src/engine/math/taitBryanMatrix.cpp index 0b2837b..d0f03fa 100644 --- a/src/engine/math/taitBryanMatrix.cpp +++ b/src/engine/math/taitBryanMatrix.cpp @@ -94,8 +94,10 @@ namespace fgl::engine { glm::mat4 mat { 1.0f }; + //TODO: Debug with Entry, There has got to be a better fix then this. Rotation fixed_rotation { rotation }; - fixed_rotation.x = -fixed_rotation.x; + fixed_rotation.pitch() = -fixed_rotation.pitch(); + fixed_rotation.roll() = -fixed_rotation.roll(); const auto [ c1, s1 ] = extract< 1 >( fixed_rotation, order ); const auto [ c2, s2 ] = extract< 2 >( fixed_rotation, order );