component
Hut
A round hut: a post-ribbed wall on a stone base, a framed doorway and window, under a shaggy thatch cone; one cylinder collider.
Add it
npx @runek/cli add hut
Pulls @react-three/rapier@^2.2.0, @runek/core@^0.13.0, three@^0.184.0.
Use it
import { Hut } from './runek/Hut'
<Hut position={[0, 0, 0]} />
Props
export interface HutProps extends WorldComponentProps {
/** Wall radius, in units. */
radius?: number
/** Wall height at the eaves, in units. */
wallHeight?: number
/** Conical roof height above the eaves, in units. */
roofHeight?: number
/** Doorway width at the front (local +Z), in units. */
doorWidth?: number
/** Wall color; defaults to the palette's `wall`. */
wallColor?: string
/** Roof color; defaults to the palette's `roof`. */
roofColor?: string
}
Registry manifest
registry manifest /r/components/hut.json Self-contained JSON: inlined source plus resolved dependencies, exactly whatrunek add hut fetches.
Browse the whole catalog in the gallery →.