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:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-01-15 01:33:39 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2009-01-15 01:33:39 +0300
commit509ca83ef1d10fab4903981714cfab3719280e04 (patch)
tree0b065c5d22bb511a148db43ba260e98195f5c155 /source/gameengine/Ketsji/KX_SCA_DynamicActuator.h
parent00c12e09066c551e3ae8ee6da3cb85fb3bcf90f8 (diff)
BGE patch 18065: gameobj mass writeable + setmass actuator. This patch allows to change the mass of a dynamic or rigid body object during the game. Two methods are available: in a Python script by setting the mass attribute of the game object; by logic brick with the Edit Object->Dynamics->Set Mass actuator. The mass can only be set on dynamic objects and must be a positive floating point value.
Diffstat (limited to 'source/gameengine/Ketsji/KX_SCA_DynamicActuator.h')
-rw-r--r--source/gameengine/Ketsji/KX_SCA_DynamicActuator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_SCA_DynamicActuator.h b/source/gameengine/Ketsji/KX_SCA_DynamicActuator.h
index b47c3a511d9..de2fab68d15 100644
--- a/source/gameengine/Ketsji/KX_SCA_DynamicActuator.h
+++ b/source/gameengine/Ketsji/KX_SCA_DynamicActuator.h
@@ -45,10 +45,12 @@ class KX_SCA_DynamicActuator : public SCA_IActuator
// dynamics operation to apply to the game object
short m_dyn_operation;
+ float m_setmass;
public:
KX_SCA_DynamicActuator(
SCA_IObject* gameobj,
short dyn_operation,
+ float setmass,
PyTypeObject* T=&Type
);