component
Staircase
Stepped staircase with per-step colliders.
Add it
npx runek add staircase
Pulls core, @react-three/rapier@^2.2.0.
Use it
import { Staircase } from './runek/Staircase'
<Staircase position={[0, 0, 0]} />
Props
export interface StaircaseProps {
position?: Vec3
rotation?: Vec3
steps?: number
/** Total rise, in units. Ascends along +y and +z from the origin. */
totalHeight?: number
width?: number
/** Total run (depth), in units. */
depth?: number
/** Defaults to the world palette's `stone` slot. */
color?: string
}
See it live with editable props in the gallery →.