Bugfix: newly created objects would return uninitialised XYZ and HPR values (when

called before the first update).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2521 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2008-11-28 02:42:16 +00:00
parent a435305925
commit 5a9e06359d

View File

@@ -68,6 +68,7 @@ void Moveable::createBody(float mass, btTransform& trans,
btVector3 inertia;
shape->calculateLocalInertia(mass, inertia);
m_transform = trans;
m_motion_state = new KartMotionState(trans);
btRigidBody::btRigidBodyConstructionInfo info(mass, m_motion_state, shape, inertia);