added suport for ballxpolygon collision ... VERY hacky
[physics.git] / src / Entities / Polygon.h
index b8c8493..82ff9d7 100644 (file)
@@ -35,7 +35,7 @@ class Polygon: public PhysicsEntity
 
         virtual void draw() const;
 
-    protected:
+    //protected:
         Vector2 maxP; // stores the max bounding box point
         Vector2 minP; // stores the min bounding box point
 
@@ -44,6 +44,7 @@ class Polygon: public PhysicsEntity
         // color;
     private:
         void createBindingBox();
+        void centerPosition();
 };
 
 #endif // POLYGON_H