At every step, the growing tip samples the current heading
h, the unit vector
l toward the light, a local obstacle
response
r, and a small deterministic curl
c.
candidate = normalize(1.20h + 0.95l + 1.85r + 0.08c)
next heading = heading rotated toward candidate, maximum 18°
next point = tip + 0.13 × next heading
The proposed segment is collision-checked against the obstacle boxes.
The rule is qualitative: it demonstrates how local directional responses
can create different whole-plant shapes, but is not a biological model.
Light response
Obstacle response
Selected heading