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

Bring Separation and Cohesion into similar math #42

Open
Razoric480 opened this issue Apr 13, 2020 · 0 comments
Open

Bring Separation and Cohesion into similar math #42

Razoric480 opened this issue Apr 13, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Razoric480
Copy link
Collaborator

Razoric480 commented Apr 13, 2020

Currently, putting equal parts Cohesion and Separation leads to math that vastly favours Cohesion, and requires Separation be given a decay_coefficient in the hundreds of thousands to millions range, and to give it a blended strength that is an order of magnitude stronger than the Cohesion.

Putting a 1:1 ratio of the two behaviors should cause close-to-zero amounts of acceleration, after an adjustment period, without large amounts of tweaking.

Though it should be done in a way that does not compromise the difference between Separation and Cohesion:

  • Cohesion should still be a behavior that tries to move towards the proximity's center of mass
  • Separation should still be a behavior that tries to move away from other units in the proximity, with closer units causing higher values.
@Razoric480 Razoric480 added the enhancement New feature or request label Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant