component
Wall
Wall segment with door/window openings and a fixed collider.
Add it
npx runek add wall
Pulls core, @react-three/rapier@^2.2.0.
Use it
import { Wall } from './runek/Wall'
<Wall position={[0, 0, 0]} />
Props
export interface WallProps {
position?: Vec3
rotation?: Vec3
/** Length along the wall's local X axis, in units. */
width?: number
height?: number
thickness?: number
/** Defaults to the world palette's `wall` slot. */
color?: string
opening?: WallOpening
}
See it live with editable props in the gallery →.