bigger commits
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define ANIMATOR_CLASS
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
@@ -9,6 +10,9 @@
|
||||
#include <assimp/Importer.hpp>
|
||||
#include "Rig.h"
|
||||
|
||||
// Scale of the "Head" bone (and what hangs off it), around the neck. 1 = as authored.
|
||||
inline float HeadScale = 0.25f;
|
||||
|
||||
struct AssimpNodeData
|
||||
{
|
||||
glm::mat4 transformation;
|
||||
@@ -199,6 +203,8 @@ private:
|
||||
}
|
||||
|
||||
glm::mat4 globalTransform = parentTransform * nodeTransform;
|
||||
if (nodeName == "Head")
|
||||
globalTransform = glm::scale(globalTransform, glm::vec3(HeadScale));
|
||||
|
||||
auto it = m_BoneInfoMap.find(nodeName);
|
||||
if (it != m_BoneInfoMap.end()) {
|
||||
|
||||
Reference in New Issue
Block a user