alignment
alignment(
vel,neighbors,maxSpeed):Vec2
Defined in: src/modules/steering/steering.ts:145
Steer to match the average heading of neighbours.
Parameters
Section titled “Parameters”neighbors
Section titled “neighbors”readonly Neighbor[]
maxSpeed
Section titled “maxSpeed”number