local - global orientation and ancestor retrieval tests

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent 62c189a0c2
commit 22cf5bc3c9
5 changed files with 167 additions and 103 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ namespace vb01{
}
void Bone::lookAt(Vector3 newDir, Vector3 newUp, Node *par){
Node::lookAt(newDir, newUp, par);
Node::lookAt(newDir, newUp);
for(int i = 0; i < 3; i++)
this->initAxis[i] = globalAxis[i];
restPos = pos;