X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2FEntities%2FPolygon.h;h=82ff9d7283cd1ce76705a76e01269ed86b7093db;hp=b8c8493c312dfafdfee191b7f655f3b722c106db;hb=aa2791cf43a9ddd3a288e504db08e11d03439653;hpb=4a76d2e2cf7874e54a4e6688ebf1fa8ca59ce8c1 diff --git a/src/Entities/Polygon.h b/src/Entities/Polygon.h index b8c8493..82ff9d7 100644 --- a/src/Entities/Polygon.h +++ b/src/Entities/Polygon.h @@ -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