Flocking (Behaviour)

Flocking (Behaviour)

Compute a new agent direction using a flocking algorithm based on the proximity with agents of the same agent group.

Success: When the agent could be aligned

Failure: When the agent could not be aligned

Running: Never


Attributes

Attributes

Type

Description

Attributes

Type

Description

lockAgent

bool

If on, ensures no data on the agent is written simultaneously by nodes that have this option active.

alignment

double

Alignment weight

cohesion

double

Cohesion weight

separation

double

Separation weight

weight

double

Blending weight

searchRadius

double

All agents inside within this distance will be evaluated

maxTurnAngle

double

Max turn angle

velocityThreshold

double

The velocity threshold. If the agent velocity magnitude is lower than this value the agent is not evaluated

Copyright © 2017, Toolchefs LTD.