projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added suport for ballxpolygon collision ... VERY hacky
[physics.git]
/
src
/
Entities
/
Polygon.h
diff --git
a/src/Entities/Polygon.h
b/src/Entities/Polygon.h
index
b8c8493
..
82ff9d7
100644
(file)
--- 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