component
Cliff
A rocky promontory: a low-poly, seed-jittered truncated cone with a flattish plateau and a convex-hull collider.
Add it
npx @runek/cli add cliff
Pulls @react-three/rapier@^2.2.0, @runek/core@^0.13.0, three@^0.184.0.
Use it
import { Cliff } from './runek/Cliff'
<Cliff position={[0, 0, 0]} />
Props
export interface CliffProps extends WorldComponentProps {
/** Base radius at the waterline, in units. */
radius?: number
/** Plateau (top) radius, in units. */
topRadius?: number
/** Height from the base to the plateau, in units. */
height?: number
/** Radial facets — fewer reads as blockier rock. */
segments?: number
/** Surface jitter, as a fraction of a facet. */
rough?: number
/** Rock color; defaults to the palette's `stone`. */
color?: string
}
Registry manifest
registry manifest /r/components/cliff.json Self-contained JSON: inlined source plus resolved dependencies, exactly whatrunek add cliff fetches.
Browse the whole catalog in the gallery →.