# Hedge

> A trimmed green wall with seeded surface tufts; blocks like a Wall.

## Add it

```bash
npx @runek/cli add hedge
```

Pulls `@react-three/rapier@^2.2.0`, `@runek/core@^0.15.0`, `three@^0.184.0`.

## Use it

```tsx
import { Hedge } from './runek/Hedge'

<Hedge position={[0, 0, 0]} seed={1} />
```

Or as a node in a world file ([worlds as data](https://runek.nullorder.org/docs/worlds-as-data.md)):

```json
{ "type": "Hedge", "props": { "position": [0, 0, 0], "seed": 1 } }
```

## Props

| Prop | Type | Default | Description |
|---|---|---|---|
| `position` | `[x, y, z]` | `[0, 0, 0]` | Position [x, y, z] in units (1 unit = 1 m, Y-up). |
| `rotation` | `[x, y, z]` | `[0, 0, 0]` | Euler rotation [x, y, z] in radians. |
| `length` | `number` | `4` | Length along local X, in units. |
| `height` | `number` | `1.2` | Height, in units. |
| `depth` | `number` | `0.6` | Depth, in units. |
| `color` | `color` | palette `foliage` | Defaults to the world palette's `foliage` slot. |
| `seed` | `number` | `1` | Seed for the deterministic variation: same seed, same result. |

## Registry manifest

[https://runek.nullorder.org/r/components/hedge.json](https://runek.nullorder.org/r/components/hedge.json): Self-contained JSON: inlined source plus resolved dependencies, exactly what `runek add hedge` fetches.

Browse the whole catalog in the **[gallery →](https://runek.nullorder.org/gallery)**.
