Interactive botany lab

Plant Phototropism Laboratory

Move the light and reshape the planter. New stem segments react locally, producing different global growth forms.

Segments 0
Tip height 0.0
Mean turn 0.0°
Toy growth algorithm
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
Drag to orbit · scroll to zoom · double-click to reset view
LIGHT
BLOCK A
BLOCK B