fixed position and orientation transformation methods

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent e106379f2f
commit de8a6fb1aa
3 changed files with 36 additions and 35 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ namespace vb01{
void Bone::setPoseRot(Quaternion r){
this->poseRot = r;
setOrientation(r);
setOrientation(restRot);
Quaternion parentSpacePoseRot = parent->globalToLocalOrientation(localToGlobalOrientation(r));
setOrientation(parentSpacePoseRot);
}