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
/
entityCreator.cpp
diff --git
a/src/entityCreator.cpp
b/src/entityCreator.cpp
index
1b4b6f7
..
104158c
100644
(file)
--- a/
src/entityCreator.cpp
+++ b/
src/entityCreator.cpp
@@
-80,11
+80,12
@@
void creator::init()
addBall(Vector2(200+i*2, 200+i*2), 10, cCyan);
}
addBall(Vector2(200+i*2, 200+i*2), 10, cCyan);
}
+ // HACK
// add a polygon into the mix (currently not cleaned up)
vector<Vector2> points;
// add a polygon into the mix (currently not cleaned up)
vector<Vector2> points;
- points.push_back(Vector2(50
,5
0));
- points.push_back(Vector2(
50,1
00));
- points.push_back(Vector2(
100,5
0));
+ points.push_back(Vector2(50
0,50
0));
+ points.push_back(Vector2(
300,5
00));
+ points.push_back(Vector2(
500,30
0));
manager::add(new Polygon(points));
}
manager::add(new Polygon(points));
}