Skip to content

Commit

Permalink
Merge pull request #5 from nbvdkamp/deltatimefix
Browse files Browse the repository at this point in the history
Fix boid speed depending on framerate
  • Loading branch information
cubedhuang authored Nov 19, 2024
2 parents 48238dc + 6eae7cd commit c921dcc
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 c921dcc

Please sign in to comment.