component
Barrel
Staved barrel bellied at the middle, banded by metal hoops; convex-hull collider.
Add it
npx @runek/cli add barrel
Pulls @react-three/rapier@^2.2.0, @runek/core@^0.13.0.
Use it
import { Barrel } from './runek/Barrel'
<Barrel position={[0, 0, 0]} />
Props
export interface BarrelProps {
position?: Vec3
rotation?: Vec3
radius?: number
height?: number
/** Stave color; defaults to the world palette's `wood` slot. */
color?: string
/** Hoop color; defaults to the world palette's `metal` slot. */
hoopColor?: string
}
Registry manifest
registry manifest /r/components/barrel.json Self-contained JSON: inlined source plus resolved dependencies, exactly whatrunek add barrel fetches.
Browse the whole catalog in the gallery →.