Skip to content

Commit

Permalink
make attraction work
Browse files Browse the repository at this point in the history
  • Loading branch information
clawtros committed May 10, 2012
1 parent 99c6f2e commit 705961c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim.js
Expand Up @@ -123,7 +123,7 @@ Population.prototype.interact_with = function(other, dt) {

}

if (comp*(1/distance) < 0.10) {
if (comp*(1/distance)/sim.attraction < 0.10) {
this.x -= (dx*sim.attraction/20)*TIMESCALE;
this.y -= (dy*sim.attraction/20)*TIMESCALE;
}
Expand Down

0 comments on commit 705961c

Please sign in to comment.