BGE modifier: generate correct physic shape, share static derived mesh, share display...
[blender.git] / source / gameengine / Physics / Bullet / CcdPhysicsController.h
index 4ab478b210646910846fe947a65e7bfbba90a238..315e2bdf429b1017ab9aefc3bd05caf9403eb007 100644 (file)
@@ -36,6 +36,7 @@ extern bool gDisableDeactivation;
 class CcdPhysicsEnvironment;
 class btMotionState;
 class RAS_MeshObject;
+struct DerivedMesh;
 class btCollisionShape;
 
 
@@ -59,7 +60,7 @@ class CcdShapeConstructionInfo
 public:
        
 
-       static CcdShapeConstructionInfo* FindMesh(RAS_MeshObject* mesh, bool polytope);
+       static CcdShapeConstructionInfo* FindMesh(class RAS_MeshObject* mesh, struct DerivedMesh* dm, bool polytope, bool gimpact);
 
        CcdShapeConstructionInfo() :
                m_shapeType(PHY_SHAPE_NONE),
@@ -139,7 +140,7 @@ public:
                return true;
        }
 
-       bool SetMesh(RAS_MeshObject* mesh, bool polytope,bool useGimpact);
+       bool SetMesh(class RAS_MeshObject* mesh, struct DerivedMesh* dm, bool polytope,bool useGimpact);
        RAS_MeshObject* GetMesh(void)
        {
                return m_meshObject;