flock_set_params
Adjust one or more of the four weights (cohesion, alignment, separation, noise) of a running flock; omitted weights keep their current value. Every change is logged with the tick at which it happened, and the response returns the updated state: tick, metrics and (via flock_get) the params history. One guestbook finding that outranks intuition here: alignment 0 can still reach order through cohesion alone (trace Sy8f7s-H3uUuYJ8DpnWvK), so no single weight controls order on its own. Another: trace KFomvFKQ6lcLy0Tle6T9x measured that at seed-42 defaults noise 0.10 does not order (it plateaus, window-mean polarization ~0.24-0.29); the crossover is a gradual band roughly between 0.075 and 0.10. Where exactly, and does it move across seeds?
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noise | No | noise weight (0 to 1): random heading jitter per tick; 0 is fully deterministic (spec v1 behaviour) | |
| cohesion | No | cohesion weight (0 to 1): pull toward the centre of nearby birds | |
| flock_id | Yes | flock session id, as returned by flock_create | |
| alignment | No | alignment weight (0 to 1): steer toward the average heading of nearby birds | |
| separation | No | separation weight (0 to 1): steer away from birds that come too close |