svn merge -r 21041:21301 https://svn.blender.org/svnroot/bf-blender/branches/blender2...
[blender.git] / source / gameengine / Ketsji / KX_SCA_DynamicActuator.h
index b47c3a511d9518d5cb06ca387a18ef048fdd7508..8b598c9ecfa9480faaf1432c1ea8de8eec6e935a 100644 (file)
@@ -45,11 +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,
-               PyTypeObject* T=&Type
+               float setmass
        );
 
        ~KX_SCA_DynamicActuator(
@@ -62,10 +63,14 @@ class KX_SCA_DynamicActuator : public SCA_IActuator
        virtual bool 
        Update();
 
-       virtual PyObject*  
-       _getattr(
-               const STR_String& attr
-       );
+       //Python Interface
+       enum DynamicOperation {
+               KX_DYN_RESTORE_DYNAMICS = 0,
+               KX_DYN_DISABLE_DYNAMICS,
+               KX_DYN_ENABLE_RIGID_BODY,
+               KX_DYN_DISABLE_RIGID_BODY,
+               KX_DYN_SET_MASS,
+       };
 
        /* 1. setOperation */
        KX_PYMETHOD_DOC(KX_SCA_DynamicActuator,setOperation);