2026-08-24 15:54:44 +02:00
|
|
|
import type { Vec3 } from "engine/math/Vec3"
|
2026-08-04 13:53:59 +02:00
|
|
|
|
2026-08-07 19:11:43 +02:00
|
|
|
/** One procedural tree instance. `growth` 0..1 runs sapling -> full grown: it scales
|
|
|
|
|
* height and girth and adds canopy blobs / tiers. `seed` drives the per-tree random
|
|
|
|
|
* wobble so a forest doesn't look cloned. */
|
2026-08-04 13:53:59 +02:00
|
|
|
export type Tree = {
|
|
|
|
|
/** Trunk base, sitting on the ground. */
|
|
|
|
|
position: Vec3
|
|
|
|
|
growth: number
|
|
|
|
|
seed: number
|
|
|
|
|
}
|