Add **skeleton retargeting** to play animations on different skeletons

This commit is contained in:
Wojtek Figat
2023-05-04 11:54:17 +02:00
parent b89d32ce2b
commit 05ffaf7cef
15 changed files with 775 additions and 104 deletions

View File

@@ -112,7 +112,7 @@ public:
Bones.Swap(other.Bones);
}
int32 FindNode(const StringView& name)
int32 FindNode(const StringView& name) const
{
for (int32 i = 0; i < Nodes.Count(); i++)
{
@@ -122,7 +122,7 @@ public:
return -1;
}
int32 FindBone(int32 nodeIndex)
int32 FindBone(int32 nodeIndex) const
{
for (int32 i = 0; i < Bones.Count(); i++)
{