2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 15:51:22 +00:00

CElementGen: Use transposed matrix in SetOrientation

This commit is contained in:
Luke Street 2020-04-23 05:06:14 -04:00
parent 579bfbb51d
commit 99b6034e5c

View File

@ -1789,7 +1789,7 @@ void CElementGen::RenderParticlesIndirectTexture() {
void CElementGen::SetOrientation(const zeus::CTransform& orientation) { void CElementGen::SetOrientation(const zeus::CTransform& orientation) {
x1d8_orientation = orientation; x1d8_orientation = orientation;
x208_orientationInverse = x1d8_orientation.inverse().basis; x208_orientationInverse = x1d8_orientation.basis.transposed();
for (const std::unique_ptr<CParticleGen>& ch : x290_activePartChildren) for (const std::unique_ptr<CParticleGen>& ch : x290_activePartChildren)
ch->SetOrientation(orientation); ch->SetOrientation(orientation);