added color to polygons
[physics.git] / src / entityCreator.cpp
index 1b4b6f7..191d396 100644 (file)
@@ -80,13 +80,14 @@ void creator::init()
         addBall(Vector2(200+i*2, 200+i*2), 10, cCyan);
     }
 
+    // HACK
     // add a polygon into the mix (currently not cleaned up)
     vector<Vector2> points;
-    points.push_back(Vector2(50,50));
-    points.push_back(Vector2(50,100));
-    points.push_back(Vector2(100,50));
+    points.push_back(Vector2(500,500));
+    points.push_back(Vector2(300,500));
+    points.push_back(Vector2(500,300));
 
-    manager::add(new Polygon(points));
+    manager::add(new Polygon(points, cRed));
 }
 void creator::clean()
 {