Fixed item rotation (got broken by accidentally committing a

work-in-progress version of the file).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4671 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-02-08 22:46:15 +00:00
parent c029127c9a
commit 9952e74095

View File

@ -153,6 +153,7 @@ void Item::update(float dt)
m_coord.setHPR(m_coord.getHPR()+rotation);
m_node->setRotation(m_coord.getHPR().toIrrHPR());
m_node->setPosition(m_coord.getXYZ().toIrrVector());
return;
core::quaternion q;
q.rotationFromTo(core::vector3df(0,1,0), m_normal.toIrrVector());