NLA SoC: Merge from 2.5
[blender.git] / source / gameengine / Ketsji / KX_SCA_DynamicActuator.h
index a82cddd66a7ed98da0f479970ea54bb09222f253..8b598c9ecfa9480faaf1432c1ea8de8eec6e935a 100644 (file)
@@ -50,8 +50,7 @@ class KX_SCA_DynamicActuator : public SCA_IActuator
        KX_SCA_DynamicActuator(
                SCA_IObject* gameobj, 
                short dyn_operation,
-               float setmass,
-               PyTypeObject* T=&Type
+               float setmass
        );
 
        ~KX_SCA_DynamicActuator(
@@ -64,7 +63,14 @@ class KX_SCA_DynamicActuator : public SCA_IActuator
        virtual bool 
        Update();
 
-       virtual PyObject* _getattr(const char *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);