diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2007-06-23 08:49:17 +0400 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2007-06-23 08:49:17 +0400 |
commit | 5c8d1352ead6ce08003f4e264dbe72756a0e8b0d (patch) | |
tree | ebd18e1ee937dd04f034b0dca8d447096433986b | |
parent | 62ac9cba9cf27921db32c9c7ccac8f74668744ed (diff) |
bugfix: adding static objects will 'replace' previously added static object in game engine. need to use new motion state.
-rw-r--r-- | source/gameengine/Physics/Bullet/CcdPhysicsController.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp index a131054f5e5..5a45ce020cc 100644 --- a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp +++ b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp @@ -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, |