mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-16 01:45:25 +00:00
Assimp Import Axis
Build a matrix to fix the assimp import to be zup yforward
This commit is contained in:
parent
b919ab50ed
commit
a716107dd2
3 changed files with 81 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue