bugfix: adding static objects will 'replace' previously added static object in game engine. need to use new motion state.

This commit is contained in:
Erwin Coumans 2007-06-23 04:49:17 +00:00
parent 62ac9cba9c
commit 5c8d1352ea

@ -104,12 +104,13 @@ public:
};
void CcdPhysicsController::CreateRigidbody()
{
btTransform trans = GetTransformFromMotionState(m_cci.m_MotionState);
btTransform trans = GetTransformFromMotionState(m_MotionState);
m_bulletMotionState = new BlenderBulletMotionState(m_cci.m_MotionState);
m_bulletMotionState = new BlenderBulletMotionState(m_MotionState);
m_body = new btRigidBody(m_cci.m_mass,
m_bulletMotionState,