synched with trunk at revision 36569
[blender.git] / source / gameengine / Ketsji / KX_GameObject.h
index 50fbebe..2ea6e95 100644 (file)
@@ -64,6 +64,7 @@ class KX_IPhysicsController;
 class PHY_IGraphicController;
 class PHY_IPhysicsEnvironment;
 struct Object;
+class KX_ObstacleSimulation;
 
 #ifdef WITH_PYTHON
 /* utility conversion function */
@@ -112,7 +113,9 @@ protected:
        SG_Node*                                                        m_pSGNode;
 
        MT_CmMatrix4x4                                          m_OpenGL_4x4Matrix;
-       
+
+       KX_ObstacleSimulation*                          m_pObstacleSimulation;
+
 public:
        bool                                                            m_isDeformable;
 
@@ -795,6 +798,16 @@ public:
                }
                m_bSuspendDynamics = false;
        }
+
+       void RegisterObstacle(KX_ObstacleSimulation* obstacleSimulation)
+       {
+               m_pObstacleSimulation = obstacleSimulation;
+       }
+
+       void UnregisterObstacle()
+       {
+               m_pObstacleSimulation = NULL;
+       }
        
        KX_ClientObjectInfo* getClientInfo() { return m_pClient_info; }