mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
more precise base position for skinning
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user