changes to simulate examples

This commit is contained in:
shiffman
2011-12-15 17:27:25 +00:00
parent 2072bceb6e
commit 65f795f70d
12 changed files with 205 additions and 307 deletions
@@ -16,7 +16,7 @@ void setup() {
flock = new Flock();
// Add an initial set of boids into the system
for (int i = 0; i < 150; i++) {
flock.addBoid(new Boid(new PVector(width/2,height/2), 3.0, 0.05));
flock.addBoid(new Boid(width/2,height/2));
}
}
@@ -27,5 +27,5 @@ void draw() {
// Add a new boid into the System
void mousePressed() {
flock.addBoid(new Boid(new PVector(mouseX,mouseY), 2.0, 0.05));
flock.addBoid(new Boid(mouseX,mouseY));
}