add comment about fixing stuttering

This commit is contained in:
JH159753 2022-09-21 17:56:28 -07:00
parent 219cecdbd8
commit 6bf5b1c544
1 changed files with 1 additions and 1 deletions

View File

@ -95,8 +95,8 @@ class Boid
} else if (kinematic.getSpeed() < 10 && direction.mag() > 5) {
kinematic.increaseSpeed(.5,0);
} else if (kinematic.getSpeed() < 5 && direction.mag() < 5) {
//This should ensure that the boid's speed can be dropped to exactly 0 so we don't have stuttering
kinematic.increaseSpeed(-kinematic.getSpeed(),0);
println(kinematic.getSpeed());
} else {
kinematic.increaseSpeed(-1,0);
}