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:
parent
c029127c9a
commit
9952e74095
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user