more precise base position for skinning

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent b7d9a82eec
commit 9903f6983b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ namespace vb01{
rotAxis = boneAxis[0] * rotAxis.x + boneAxis[1] * rotAxis.y + boneAxis[2] * rotAxis.z;
Vector3 trans = boneAxis[0] * posePos.x + boneAxis[1] * posePos.y + boneAxis[2] * posePos.z;
Vector3 scale = bone->getPoseScale();
Vector3 bonePos = bone->getModelSpacePos();
Vector3 bonePos = bone->getBoneSpaceRestPos(skeleton->getRootBone());
int vertGroupId = -1, parentId = -1;
for(int j = 0; j < numVertexGroups; j++)