Skip to content

Commit

Permalink
Fix boid speed depending on framerate
Browse files Browse the repository at this point in the history
  • Loading branch information
nbvdkamp committed Nov 18, 2024
1 parent 48238dc commit 6eae7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/boid.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class Boid extends V2D {
}

this.vel.max(opt.maxSpeed);
this.add(this.vel);
this.sclAdd(this.vel, g.delta);

if (opt.bounce) {
let ran = false;
Expand Down

0 comments on commit 6eae7cd

Please sign in to comment.