meat/game/actors/Tree.ts

11 lines
387 B
TypeScript

import type { Vec3 } from "../../engine/math/Vec3"
/** 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. */
export type Tree = {
/** Trunk base, sitting on the ground. */
position: Vec3
growth: number
seed: number
}