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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user