Skip to content

separation

separation(pos, neighbors, vel, maxSpeed): Vec2

Defined in: src/modules/steering/steering.ts:125

Steer away from crowding, weighted by inverse distance (closer = stronger).

Vec2

readonly Neighbor[]

Vec2

number

Vec2