17 Joint(
int m_index, std::string m_nameID,
mat4 m_bindLocalTransform)
18 : m_index(m_index), m_nameID(m_nameID), m_bindLocalTransform(m_bindLocalTransform) {
23 for (
auto child : m_children) {
30 void addChild(
Joint* child) {
31 if (child ==
nullptr)
return;
32 m_children.push_back(child);
35 const std::string& GetName()
const {
39 int GetIndex()
const {
43 const mat4 GetBindLocalTransform()
const {
44 return m_bindLocalTransform;
47 const std::vector<Joint*>& GetChildren()
const {
54 mat4 m_bindLocalTransform;
56 std::vector<Joint*> m_children;