CElementGen: Correct x208_orientationInverse type to CMatrix3f

This commit is contained in:
Luke Street 2020-04-23 04:41:57 -04:00
parent e94cd265f8
commit 579bfbb51d
2 changed files with 2 additions and 2 deletions

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(); x208_orientationInverse = x1d8_orientation.inverse().basis;
for (const std::unique_ptr<CParticleGen>& ch : x290_activePartChildren) for (const std::unique_ptr<CParticleGen>& ch : x290_activePartChildren)
ch->SetOrientation(orientation); ch->SetOrientation(orientation);

View File

@ -79,7 +79,7 @@ private:
zeus::CTransform x178_localScaleTransform = zeus::CTransform(); zeus::CTransform x178_localScaleTransform = zeus::CTransform();
zeus::CTransform x1a8_localScaleTransformInverse = zeus::CTransform(); zeus::CTransform x1a8_localScaleTransformInverse = zeus::CTransform();
zeus::CTransform x1d8_orientation = zeus::CTransform(); zeus::CTransform x1d8_orientation = zeus::CTransform();
zeus::CTransform x208_orientationInverse = zeus::CTransform(); zeus::CMatrix3f x208_orientationInverse = zeus::CMatrix3f();
zeus::CTransform x22c_globalOrientation = zeus::CTransform(); zeus::CTransform x22c_globalOrientation = zeus::CTransform();
u32 x25c_activeParticleCount = 0; u32 x25c_activeParticleCount = 0;