Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
mnd::Bone Struct Reference

#include <Skeleton.h>

+ Collaboration diagram for mnd::Bone:

Public Attributes

std::string name
 
i32 parentIndex = -1
 Index into Skeleton::bones, or -1 for the root.
 
glm::mat4 localBind = glm::mat4(1)
 Local bind transform (relative to parent).
 
glm::mat4 offsetMatrix = glm::mat4(1)
 Inverse bind matrix in mesh space (Assimp aiBone::mOffsetMatrix).
 
glm::vec3 bindPos = glm::vec3(0.0f)
 
glm::quat bindRot = glm::quat(1.0f, 0.0f, 0.0f, 0.0f)
 
glm::vec3 bindScale = glm::vec3(1.0f)
 

Detailed Description

Definition at line 22 of file Skeleton.h.

Member Data Documentation

◆ bindPos

glm::vec3 mnd::Bone::bindPos = glm::vec3(0.0f)

Bind decomposition (filled by Skeleton::AddBone). Used by EvaluatePose as a fallback when an animation track omits a TRS channel — without this a track that only animates rotation would zero out the bone's bind offset.

Definition at line 32 of file Skeleton.h.

Referenced by mnd::Skeleton::AddBone(), and mnd::EvaluatePose().

◆ bindRot

glm::quat mnd::Bone::bindRot = glm::quat(1.0f, 0.0f, 0.0f, 0.0f)

Definition at line 33 of file Skeleton.h.

Referenced by mnd::Skeleton::AddBone(), and mnd::EvaluatePose().

◆ bindScale

glm::vec3 mnd::Bone::bindScale = glm::vec3(1.0f)

Definition at line 34 of file Skeleton.h.

Referenced by mnd::Skeleton::AddBone(), and mnd::EvaluatePose().

◆ localBind

glm::mat4 mnd::Bone::localBind = glm::mat4(1)

Local bind transform (relative to parent).

Definition at line 26 of file Skeleton.h.

Referenced by mnd::Skeleton::AddBone().

◆ name

std::string mnd::Bone::name

Definition at line 24 of file Skeleton.h.

Referenced by mnd::Skeleton::AddBone().

◆ offsetMatrix

glm::mat4 mnd::Bone::offsetMatrix = glm::mat4(1)

Inverse bind matrix in mesh space (Assimp aiBone::mOffsetMatrix).

Definition at line 27 of file Skeleton.h.

◆ parentIndex

i32 mnd::Bone::parentIndex = -1

Index into Skeleton::bones, or -1 for the root.

Definition at line 25 of file Skeleton.h.


The documentation for this struct was generated from the following file: