fixed global to local position method

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent e07f30e3f7
commit d430bc6fc0
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ namespace vb01{
Vector3 Bone::getModelSpacePos(){
Vector3 modelSpacePos = Vector3::VEC_ZERO;
Bone *rootBone = skeleton->getRootBone();
vector<Node*> boneHierarchy = getAncestors(this, rootBone->getParent());
vector<Node*> boneHierarchy = getAncestors(this, rootBone);
while(!boneHierarchy.empty()){
int id = boneHierarchy.size() - 1;