character-kit
Installation
SKILL.md
Character kit
Target: Three.js 0.187.0, WebGPU renderer (three/webgpu), TSL (three/tsl), Jolt 1.1.0
(jolt-physics WASM) for the capsule. No WebGL fallback, no GLSL, no model files.
A playable character is four independent pieces and a thin wiring layer. Keep them separate: each is reusable on its own, and the wiring is the only place that knows about the scene.
| Piece | Skill | Owns |
|---|---|---|
| input | character-input |
which keys mean which actions, pointer deltas, edge presses |
| walking | character-walking |
the physics capsule and how it moves |
| camera | character-camera |
where the camera is and where it looks |
| model | character-model |
the visible figure and its animation |
The wiring layer (about 120 lines in the recipe below) reads input, decides a wish direction from the camera yaw, moves the capsule, steps physics, then places the camera or the model from the capsule's new position.