From 99b6034e5c7d97ccf3d455a69620fd92422e5e8b Mon Sep 17 00:00:00 2001 From: Luke Street Date: Thu, 23 Apr 2020 05:06:14 -0400 Subject: [PATCH] CElementGen: Use transposed matrix in SetOrientation --- Runtime/Particle/CElementGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Particle/CElementGen.cpp b/Runtime/Particle/CElementGen.cpp index e13b80a26..9c8ee36ef 100644 --- a/Runtime/Particle/CElementGen.cpp +++ b/Runtime/Particle/CElementGen.cpp @@ -1789,7 +1789,7 @@ void CElementGen::RenderParticlesIndirectTexture() { void CElementGen::SetOrientation(const zeus::CTransform& orientation) { x1d8_orientation = orientation; - x208_orientationInverse = x1d8_orientation.inverse().basis; + x208_orientationInverse = x1d8_orientation.basis.transposed(); for (const std::unique_ptr& ch : x290_activePartChildren) ch->SetOrientation(orientation);