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

Add min/max cohesion contribution for more controllable flocking #50

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

sinbad
Copy link
Collaborator

@sinbad sinbad commented Dec 19, 2016

I found adding a min/max limit for the cohesion component helped make flocking behaviour more controllable.

I set mine to 0.2 and 0.5 respectively, which I find helps avoid over-clustering close up (less reliance on separation to balance out) and keeps vague tracking within the group right up to the edge of the neighbour range instead of it falling off before that. Default is 0/1 though which is no change on previous behaviour.

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

Successfully merging this pull request may close these issues.

1 participant