[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19964] trunk/blender/source/gameengine/ Ketsji/KX_BulletPhysicsController.cpp: BGE: reenable object activation for static object, otherwise their physic shape is not updated when they move due to parent relation .

Benoit Bolsee benoit.bolsee at online.be
Tue Apr 28 20:56:48 CEST 2009


Revision: 19964
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19964
Author:   ben2610
Date:     2009-04-28 20:56:48 +0200 (Tue, 28 Apr 2009)

Log Message:
-----------
BGE: reenable object activation for static object, otherwise their physic shape is not updated when they move due to parent relation.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp

Modified: trunk/blender/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp	2009-04-28 18:53:15 UTC (rev 19963)
+++ trunk/blender/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp	2009-04-28 18:56:48 UTC (rev 19964)
@@ -444,7 +444,9 @@
 
 	if (!m_bDyna)
 	{
-		GetCollisionObject()->setCollisionFlags(GetRigidBody()->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT);
+		btCollisionObject* object = GetRigidBody();
+		object->setActivationState(ACTIVE_TAG);
+		object->setCollisionFlags(object->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT);
 	} else
 	{
 		if (!nondynaonly)





More information about the Bf-blender-cvs mailing list