Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Flocking Behavior


General

Flocking system allows agents mimic the orientation of a group of nearby agents and achieve the flocking behavior, this can be highly frequently used in animals simulation like birds, fishes or sheep.


Instructions

We can enable the flocking behavior directly in 

...

Also, they will try to gether together if the agents 

And the converge speed can be controlled by the output language:

Output > Direct Logic > set flocking cohesion speed:?? priority 1

(Range: 0.0 - 1.0)

auto convergent (notice the 2 selected fishes turn into group)

Repel

We are not providing the logic for repel the agent, we can directly use the auto avoid with sphere range Auto Automatic Collision AvoidAvoidance.

So for changing the distance of avoid, we can change the sphere range and smallest radius ratio on Agent group node.

...