1681-engine / index / alignment
Function: alignment() ​
ts
function alignment(
agent,
neighbours,
radius
): SteerVec;Defined in: src/nav/steering.ts:85
Towards the average heading of neighbours within radius (a flock turning together).
Parameters ​
| Parameter | Type |
|---|---|
agent | SteerAgent |
neighbours | Iterable<SteerAgent> |
radius | number |