component

Player

First/third-person character controller (ecctrl wrapper).

⌖ Explore the library in 3D →

Add it

npx runek add player

Pulls core, ecctrl@^1.0.97.

Use it

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

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

Props

export interface PlayerProps {
  position?: Vec3
  view?: PlayerView
  /** Initial camera yaw in radians (0 faces +z). */
  yaw?: number
}

See it live with editable props in the gallery →.