I'll start by exploring the project structure and installing Three.js.
Now I'll build the Three.js modules. Starting with procedural textures and the IK solver.
Now the procedural stone wall with real protruding ledge geometry that defines the grip points.
Now the articulated assassin rig with hood, robes and gripping hands.
Now the verlet cloth simulation for the cape and sash.
Now the climbing controller that sequences limb moves between real holds.
Now the main scene: lighting, camera, IK driving, cloth, dust and the render loop.
Now the React shell with the control overlay.
Let me refine a few geometry details for better limb extension and to keep the route clear of the cornices.
Let me review the final scene logic end-to-end for runtime correctness.
The build is green and the current source is fully compiled. Here's what I built:
Architecture (src/three/)
wall.ts — the climbable geometry
- A 17 × 50 m masonry wall: a backing slab plus ~1,700 individually offset, colour‑varied bricks (
InstancedMesh), buttresses, string courses, arrow‑slit windows and a crenellated parapet.
- A generated climbing route of 132 real protruding blocks (ledges / bricks / pegs, each with random size, protrusion depth and tilt, plus broken chips). Each block exports a grip point sampled from its own top‑front edge — this is the single source of truth that the character's hands and feet are solved onto, so contact always matches actual wall geometry.
ik.ts — analytic two‑bone IK
- Law‑of‑cosines solver working in the joint's parent space, with a pole vector that controls which way elbows/knees bend, plus
setWorldOrientation() which force‑aligns hands and feet in world space (fingers hooked over a ledge, boot soles flat on a block with the toe edging into the wall).
assassin.ts — the articulated figure (no capsule blobs)
- Hierarchy: pelvis → spine → chest → neck → head, plus shoulders → elbows → wrists → 4 two‑segment curling fingers + a two‑segment thumb per hand, and hips → knees → ankles → boots (sole, toe cap, heel, cuff).
- Costume: hood with a phi‑cut cowl, the iconic beak, shadowed face void, shoulder mantle, chest straps, throwing knives, belt with pouches, bracers with a hidden‑blade housing, slit tunic skirt, shin wraps.
cloth.ts — verlet cape/sash
- 12 × 17 particle grid, structural + shear + bend constraints, 6 relaxation passes, pinned to a bone on the upper back so it trails, billows and lags behind the climb; per‑particle turbulent wind, sphere colliders for torso/pelvis/head, and a wall‑plane clamp. A second, smaller instance drives the red hip sash.
climb.ts — the gait
- Four limbs step two holds up the route in a
RH → LF → LH → RF diagonal pattern with arc'd swing paths (out from the wall, then plant); three limbs stay planted at all times. Pelvis height, lateral sway, yaw/roll/pitch are all derived from the four contact points, and the head tracks the next handhold.
scene.ts — renderer (ACES, soft shadows), sky‑gradient background + PMREM environment, sun that follows the climber for crisp shadows, rim + bounce lights, fog, GPU dust puffs emitted on each plant, cinematic follow camera and OrbitControls.
UI (src/App.tsx)
Freeze‑frame, climb speed, wind strength, free‑orbit camera, show holds, show IK targets, cape wireframe, plus live telemetry (altitude, holds taken, current limb state, FPS).
Files built: src/three/textures.ts, src/three/ik.ts, src/three/wall.ts, src/three/assassin.ts, src/three/cloth.ts, src/three/climb.ts, src/three/scene.ts, src/App.tsx, index.html