component

CurvedWall

An arc of wall around the origin — solid concrete or a floor-to-ceiling glass curtain wall with mullions. Compose several arcs to leave door gaps; chords carry cuboid colliders.

⌖ Explore the library in 3D →

Add it

npx @runek/cli add curvedwall

Pulls @react-three/rapier@^2.2.0, @runek/core@^0.12.0, three@^0.184.0.

Use it

import { CurvedWall } from './runek/CurvedWall'

<CurvedWall position={[0, 0, 0]} />

Props

export interface CurvedWallProps extends WorldComponentProps {
  /** Arc centerline radius, in units. The component origin is the circle's center. */
  radius?: number
  /** Sweep angle in radians, centered on the local +Z axis. */
  arc?: number
  height?: number
  thickness?: number
  /** `glass` renders a transparent curtain wall with mullions; `solid` a plain wall. */
  style?: CurvedWallStyle
  /** Chord segments; defaults from `radius × arc`, more segments reading as smoother. */
  segments?: number
  /** Solid wall color; defaults to the world palette's `wall` slot. */
  color?: string
  /** Glass tint (glass style). */
  glassColor?: string
  /** Mullion and rail color (glass style); defaults to the palette's `metal` slot. */
  frameColor?: string
}

Registry manifest

registry manifest /r/components/curvedwall.json Self-contained JSON: inlined source plus resolved dependencies, exactly what runek add curvedwall fetches.

Browse the whole catalog in the gallery →.