Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2007-06-23 08:49:17 +0400
committerErwin Coumans <blender@erwincoumans.com>2007-06-23 08:49:17 +0400
commit5c8d1352ead6ce08003f4e264dbe72756a0e8b0d (patch)
treeebd18e1ee937dd04f034b0dca8d447096433986b /source/gameengine/Physics
parent62ac9cba9cf27921db32c9c7ccac8f74668744ed (diff)
bugfix: adding static objects will 'replace' previously added static object in game engine. need to use new motion state.
Diffstat (limited to 'source/gameengine/Physics')
-rw-r--r--source/gameengine/Physics/Bullet/CcdPhysicsController.cpp5
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,