Created a KX_SoftBodyDeformer for real-time soft bodies.
[blender.git] / source / gameengine / Converter / BL_DeformableGameObject.h
index 315ad18c42c95ae4c4a3a49ebfb0cdecee04efcd..126a1fcb1e70857c0162094211b8933877c017ee 100644 (file)
@@ -83,9 +83,21 @@ public:
                return (m_pDeformer) ? ((BL_MeshDeformer*)m_pDeformer)->GetMesh()->key : NULL;
        }
        
+       virtual void    SetDeformer(class RAS_Deformer* deformer)
+       {
+               m_pDeformer = deformer;
+       }
+       virtual class RAS_Deformer* GetDeformer()
+       {
+               return m_pDeformer;
+       }
+
 public:
-       RAS_Deformer            *m_pDeformer;   
+       
 protected:     
+       
+       RAS_Deformer            *m_pDeformer;
+
        class BL_ShapeActionActuator *m_activeAct;
        double          m_lastframe;
        Object*         m_blendobj;