changed pose orientation calculation

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent d430bc6fc0
commit 756c58fc89
7 changed files with 45 additions and 28 deletions
+2 -4
View File
@@ -101,14 +101,12 @@ namespace vb01{
Node *parent = skeleton->getBone(parName);
if(!parent){
parent = model;
swap(xAxis.y, xAxis.z);
xAxis.z = -xAxis.z;
swap(pos.y, pos.z);
pos.z = -pos.z;
swap(yAxis.y, yAxis.z);
yAxis.z = -yAxis.z;
swap(zAxis.y, zAxis.z);
zAxis.z = -zAxis.z;
swap(pos.y, pos.z);
pos.z = -pos.z;
/*
*/
}