can modify the rotation of the model when exporting.

This commit is contained in:
jaefunk
2021-03-15 10:23:17 +09:00
committed by ethan
parent 37c2d33cc9
commit a812fd1a0a

View File

@@ -327,8 +327,8 @@ bool ExportModel(const aiScene* pOut,
aiMatrix4x4 rx, ry, rz;
aiMatrix4x4::RotationX(imp.rot.x, rx);
aiMatrix4x4::RotationX(imp.rot.y, ry);
aiMatrix4x4::RotationX(imp.rot.z, rz);
aiMatrix4x4::RotationY(imp.rot.y, ry);
aiMatrix4x4::RotationZ(imp.rot.z, rz);
pOut->mRootNode->mTransformation *= rx;
pOut->mRootNode->mTransformation *= ry;
pOut->mRootNode->mTransformation *= rz;