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. At seed-42 defaults noise 0.1 still orders and 0.2 does not — where does it flip?
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 |