Assimp Import Axis

Build a matrix to fix the assimp import to be zup yforward
This commit is contained in:
marauder2k7 2025-12-10 04:50:58 +00:00
parent b919ab50ed
commit a716107dd2
3 changed files with 81 additions and 2 deletions

View file

@ -84,7 +84,11 @@ MatrixF AssimpAppNode::getTransform(F32 time)
// no parent (ie. root level) => scale by global shape <unit>
mLastTransform.identity();
mLastTransform.scale(ColladaUtils::getOptions().unit * ColladaUtils::getOptions().formatScaleFactor);
ColladaUtils::convertTransform(mLastTransform);
if (!isBounds())
{
MatrixF axisFix = ColladaUtils::getOptions().axisCorrectionMat;
mLastTransform.mulL(axisFix);
}
}
// If this node is animated in the active sequence, fetch the animated transform