Skip to content

Commit

Permalink
Housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
woolgathering committed Jul 7, 2019
1 parent bb41e34 commit c4f0deb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/Boids2D.sc
Expand Up @@ -54,7 +54,7 @@ Boids2D {
prGetInnerDistance {
boidList.do{|boid|
var vec, dist, count;
vec = RealVector2D.newFrom([0,0]); // a new zero vector
vec = RealVector2D.zero; // a new zero vector
count = 1; // count the number of boids nearby to scale
boidList.do{|thisBoid|
// don't check for boids that are the exact same object
Expand Down Expand Up @@ -241,7 +241,7 @@ Boids2D {
}

clearTargets {
targets = targets.clear; // clear the list
targets.clear; // clear the list
}

removeTarget {|index|
Expand All @@ -268,7 +268,7 @@ Boids2D {
}

clearObstacles {
obstacles = List[]; // clear the list
obstacles.clear; // clear the list
}

removeObstacle {|index|
Expand Down

0 comments on commit c4f0deb

Please sign in to comment.