mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Adds animated node transforms for animation importing.
Fixes sequence timing variables.
This commit is contained in:
parent
bd486bab66
commit
17a2e416ed
4 changed files with 187 additions and 17 deletions
|
|
@ -36,6 +36,7 @@
|
|||
#ifndef AI_TYPES_H_INC
|
||||
#include <assimp/types.h>
|
||||
#endif
|
||||
#include <assimp/scene.h>
|
||||
|
||||
class AssimpAppNode : public AppNode
|
||||
{
|
||||
|
|
@ -43,6 +44,7 @@ class AssimpAppNode : public AppNode
|
|||
friend class AssimpAppMesh;
|
||||
|
||||
MatrixF getTransform(F32 time);
|
||||
void getAnimatedTransform(MatrixF& mat, F32 t, aiAnimation* animSeq);
|
||||
void buildMeshList();
|
||||
void buildChildList();
|
||||
|
||||
|
|
@ -67,6 +69,8 @@ public:
|
|||
//
|
||||
}
|
||||
|
||||
static aiAnimation* sActiveSequence;
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
const char *getName() { return mName; }
|
||||
const char *getParentName() { return mParentName; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue