# BassTrap

> A floor-to-ceiling corner bass trap: a foam column with a plinth and cap, origin on the corner with the room toward +X and +Z. Seeded foam. Decorative.

## Add it

```bash
npx @runek/cli add bass-trap
```

Pulls `@runek/core@^0.18.0`.

## Use it

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

<BassTrap position={[0, 0, 0]} size={0.3} seed={1} />
```

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

```json
{ "type": "BassTrap", "props": { "position": [0, 0, 0], "size": 0.3, "seed": 1 } }
```

## Props

| Prop | Type | Default | Description |
|---|---|---|---|
| `height` | `number` | `3` | Floor to ceiling, in units. |
| `size` | `number` | `0.3` | How far its face runs along each wall from the corner, in units. |
| `color` | `color` |  | The foam. Seeded from muted studio colours when unset. |
| `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. |
| `seed` | `number` | `1` | Seed for the deterministic variation: same seed, same result. |

## Registry manifest

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

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