camera-orbit-follow.js
three.js and WebGL · A camera move · MIT
- What it does
Orbit camera with damping, named views, a 0.9 s focus tween and a follow mode that yields when the user takes over. rig.update(dt) returns true when the camera moved, so it works in a draw-on-demand loop and can be stepped. One file; copy it out of the skill folder into your project.
- Get it
const rig = createCameraRig({ camera, canvas, views: VIEWS, invalidate, limits: { minPolarDeg: 55, maxPolarDeg: 88, minDist: 4, maxDist: 30 } }); rig.setView('overview'); each frame: rig.update(dt);
- Needs (the whole pack)
Nothing to read the skill. Python 3 for the catalog helpers. Node with pnpm or npm for the starter and the examples. Optional: Playwright for its capture script, and Blender 4.2 or newer for its baked hero tier. The six anatomy studies need 169 MB of meshes fetched separately.
- License
MIT
- From