Bugfix: moving physical objects (i.e. road cone) could be in

a deactivated state when restarting (which means they could be
hovering in mid-air).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2889 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2009-01-12 12:32:14 +00:00
parent d1eea398a1
commit bddf82e272

View File

@ -220,6 +220,7 @@ void MovingPhysics::reset()
m_body->setCenterOfMassTransform(m_init_pos);
m_body->setAngularVelocity(btVector3(0,0,0));
m_body->setLinearVelocity(btVector3(0,0,0));
m_body->activate();
} // reset
// -----------------------------------------------------------------------------