component
Crate
Slatted wooden crate with seeded plank shades; stacks via a cuboid collider.
Add it
npx @runek/cli add crate
Pulls @react-three/rapier@^2.2.0, @runek/core@^0.13.0, three@^0.184.0.
Use it
import { Crate } from './runek/Crate'
<Crate position={[0, 0, 0]} seed={1} />
Props
export interface CrateProps {
position?: Vec3
rotation?: Vec3
/** Edge length, in units. */
size?: number
/** Plank color; defaults to the world palette's `wood` slot. */
color?: string
seed?: number
}
Registry manifest
registry manifest /r/components/crate.json Self-contained JSON: inlined source plus resolved dependencies, exactly whatrunek add crate fetches.
Browse the whole catalog in the gallery →.