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
This commit is contained in:
hikerstk 2009-08-02 23:35:35 +00:00
parent ece925bdcc
commit f3bc93f69a

View File

@ -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);