bugfix: adding static objects will 'replace' previously added static object in game...
[blender-staging.git] / source / gameengine / Physics / Bullet / CcdPhysicsController.cpp
index a131054f5e55a95ce789764837abb01a55fee9c6..5a45ce020cce3cc8e940f416abba587d966b594f 100644 (file)
@@ -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,