can modify the rotation of the model when exporting.
parent
37c2d33cc9
commit
a812fd1a0a
|
@ -327,8 +327,8 @@ bool ExportModel(const aiScene* pOut,
|
||||||
|
|
||||||
aiMatrix4x4 rx, ry, rz;
|
aiMatrix4x4 rx, ry, rz;
|
||||||
aiMatrix4x4::RotationX(imp.rot.x, rx);
|
aiMatrix4x4::RotationX(imp.rot.x, rx);
|
||||||
aiMatrix4x4::RotationX(imp.rot.y, ry);
|
aiMatrix4x4::RotationY(imp.rot.y, ry);
|
||||||
aiMatrix4x4::RotationX(imp.rot.z, rz);
|
aiMatrix4x4::RotationZ(imp.rot.z, rz);
|
||||||
pOut->mRootNode->mTransformation *= rx;
|
pOut->mRootNode->mTransformation *= rx;
|
||||||
pOut->mRootNode->mTransformation *= ry;
|
pOut->mRootNode->mTransformation *= ry;
|
||||||
pOut->mRootNode->mTransformation *= rz;
|
pOut->mRootNode->mTransformation *= rz;
|
||||||
|
|
Loading…
Reference in New Issue