bigger commits

This commit is contained in:
2026-10-18 12:27:54 -04:00
parent 1643c2fdaf
commit 45025b6682
6 changed files with 322 additions and 25 deletions
+6
View File
@@ -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()) {