From f3bc93f69a4881c5dd6e2d8e25b20b93d452c903 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Sun, 2 Aug 2009 23:35:35 +0000 Subject: [PATCH] Fixed (at least some) incorrect rotations in 3d animations. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3798 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/animations/three_d_animation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/animations/three_d_animation.cpp b/src/animations/three_d_animation.cpp index e95c1541b..24d7c318a 100644 --- a/src/animations/three_d_animation.cpp +++ b/src/animations/three_d_animation.cpp @@ -131,7 +131,7 @@ void ThreeDAnimation::update(float dt) if(m_body) { hpr = DEGREE_TO_RAD*hpr; - btQuaternion q(hpr.X, hpr.Y, hpr.Z); + btQuaternion q(hpr.X, hpr.Z, -hpr.Y); Vec3 p(xyz); btTransform trans(q,p); m_motion_state->setWorldTransform(trans);