component

Windmill

A tapered tower with a conical cap and four sails that turn each frame; tower collider, seeded blade phase.

⌖ Explore the library in 3D →

Add it

npx @runek/cli add windmill

Pulls @react-three/fiber@^9.6.1, @react-three/rapier@^2.2.0, @runek/core@^0.13.0, three@^0.184.0.

Use it

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

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

Props

export interface WindmillProps extends WorldComponentProps {
  /** Tower height, in units. */
  height?: number
  /** Tower base radius, in units. */
  radius?: number
  /** Sail (blade) length, in units. */
  sailLength?: number
  /** Sail rotation speed, in radians per second. */
  sailSpeed?: number
  /** Tower color (defaults to the world palette's `wall`). */
  color?: string
  /** Cap, door, and sail-frame color (defaults to the world palette's `wood`). */
  trimColor?: string
}

Registry manifest

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

Browse the whole catalog in the gallery →.