diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-07-18 18:40:24 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-07-18 18:40:24 +0400 |
commit | a397b4b82fb9c658bb9e034e96692b9e5af5819a (patch) | |
tree | 75e8fd2dca8f95ebcd97c1af11f96f88086e0d10 /source/gameengine/Ketsji/KX_IPhysicsController.h | |
parent | 6786c517af25234de320fc459252390e4454d85f (diff) |
BGE bug fix (good for 2.47): SetParent actuator did not work on dynamic objects. Dynamics will now be disabled automatically and the object will be set ghost for the duration of the parenting; this is to avoid static interaction with the parent object. The dynamic state is restored when the parenting is removed with RemoveParent actuator. This fix also applies to setParent() and removeParent() python functions.
Diffstat (limited to 'source/gameengine/Ketsji/KX_IPhysicsController.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_IPhysicsController.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_IPhysicsController.h b/source/gameengine/Ketsji/KX_IPhysicsController.h index 2ec66a883eb..bc4cc185a04 100644 --- a/source/gameengine/Ketsji/KX_IPhysicsController.h +++ b/source/gameengine/Ketsji/KX_IPhysicsController.h @@ -78,7 +78,7 @@ public: virtual MT_Vector3 getReactionForce()=0; virtual void setRigidBody(bool rigid)=0; - virtual void SuspendDynamics()=0; + virtual void SuspendDynamics(bool ghost=false)=0; virtual void RestoreDynamics()=0; virtual SG_Controller* GetReplica(class SG_Node* destnode)=0; |