Sign fix.

This commit is contained in:
Andrzej Kapolka 2013-11-07 18:00:21 -08:00
parent 11fedb23cd
commit 62134ebc4c

View file

@ -151,7 +151,7 @@ void SkeletonModel::applyPalmData(int jointIndex, const QVector<int>& fingerJoin
if (length > EPSILON) { if (length > EPSILON) {
direction += fingerVector / length; direction += fingerVector / length;
} }
fingerVector = glm::inverse(palmRotation) * fingerVector; fingerVector = glm::inverse(palmRotation) * fingerVector * -sign;
IndexValue indexValue = { i, atan2f(fingerVector.z, fingerVector.x) }; IndexValue indexValue = { i, atan2f(fingerVector.z, fingerVector.x) };
fingerIndices.append(indexValue); fingerIndices.append(indexValue);
} }