Feature to add Unit AI, creating a shared objective and behaviour for Actors. This should allow Units to act in a cohesive way, rather than a random bunch of unrelated Actors.
Requirements
[ ] Flocking is a general behaviour. i.e. is always applied
[ ] Actors in Unit flock or group together
[ ] Actors in Unit avoid going too far from one another
[ ] A "banner" is used as the point to flock around.
Suggested Feature
Feature to add Unit AI, creating a shared objective and behaviour for
Actor
s. This should allowUnit
s to act in a cohesive way, rather than a random bunch of unrelatedActor
s.Requirements
Actor
s inUnit
flock or group togetherActor
s inUnit
avoid going too far from one anotherAdditional Context
None.
Resources
Example flocking approach: https://howtorts.github.io/2014/01/03/steering-flocking.html Pseudocode example: http://www.kfish.org/boids/pseudocode.html Info on moving in formations: https://github.com/libgdx/gdx-ai/wiki/Formation-Motion
Godot flocking code example (already in repo): https://github.com/Snayff/nqp3/tree/develop/_test/_test_boid
Partially implemented flocking by contributor Nero: nero unit pathfinding demo.zip