From 1bdb31f8aa33f182b8713986abf466e2fb952dfc Mon Sep 17 00:00:00 2001 From: yeonseok-yi <0108981@gmail.com> Date: Mon, 26 Jan 2015 21:09:54 +0900 Subject: [PATCH] Fixed error of aiQuaterniont::Rotate() The function rotates a point to opposite direction. Conjugate() should be applied to inverse of the quaternion. --- include/assimp/quaternion.inl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/assimp/quaternion.inl b/include/assimp/quaternion.inl index cf1223910..181b6ffcc 100644 --- a/include/assimp/quaternion.inl +++ b/include/assimp/quaternion.inl @@ -273,11 +273,10 @@ template inline aiVector3t aiQuaterniont::Rotate (const aiVector3t& v) { aiQuaterniont q2(0.f,v.x,v.y,v.z), q = *this, qinv = q; - q.Conjugate(); + qinv.Conjugate(); q = q*q2*qinv; return aiVector3t(q.x,q.y,q.z); - } #endif