Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cohesion calculation bug #1

Closed
bezo97 opened this issue Dec 14, 2018 · 1 comment
Closed

Cohesion calculation bug #1

bezo97 opened this issue Dec 14, 2018 · 1 comment

Comments

@bezo97
Copy link

bezo97 commented Dec 14, 2018

Hey, i've looked at the flocking algorithm to see how it works. There seems to be a bug in the line below:

let coh = this.align(agents);

The cohesion force is mistakenly calculated with the align() function instead of cohesion().

@anuraghazra
Copy link
Owner

thank you very much...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants