From partme-ai-full-stack-skills
Implements Three.js addon controls including OrbitControls, MapControls, FlyControls, TransformControls for camera navigation, object dragging, and gizmos with damping and animation loop integration.
npx claudepluginhub partme-ai/full-stack-skills --plugin t2ui-skillsThis skill uses the workspace's default tool permissions.
**ALWAYS use this skill when the user mentions:**
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
ALWAYS use this skill when the user mentions:
TransformControlsIMPORTANT: controls vs webxr
| Context | Skill |
|---|---|
| Desktop/browser camera nav | threejs-controls |
| XR controller poses | threejs-webxr |
Trigger phrases include:
(camera, domElement); for TransformControls also attach to renderer events.enableDamping, call controls.update() each frame.dragging-changed to disable Orbit temporarily; sync with selection from threejs-objects.controls.dispose() when tearing down.import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
const controls = new OrbitControls(camera, renderer.domElement);
controls.enableDamping = true;
controls.dampingFactor = 0.05;
controls.minDistance = 2;
controls.maxDistance = 50;
// Must call update() each frame when damping is enabled
function animate() {
controls.update();
renderer.render(scene, camera);
}
renderer.setAnimationLoop(animate);
See examples/workflow-orbit-damping.md.
| Docs section | Representative links |
|---|---|
| Controls | https://threejs.org/docs/OrbitControls.html |
| Controls | https://threejs.org/docs/TransformControls.html |
| Controls | https://threejs.org/docs/MapControls.html |
| Controls (index) | https://threejs.org/docs/#Controls |
update() with damping enabled causes drift never settling.Controls are under Controls (Addons) in three.js docs. API details (enableDamping, events) evolve—link OrbitControls / TransformControls pages for the user’s three.js version.
When answering under this skill, prefer responses that:
controls.update() when damping is on, every frame.TransformControls with selection / threejs-objects raycasting.dispose() on controls when unmounting canvas.English: orbitcontrols, transformcontrols, mapcontrols, damping, camera controls, three.js
中文: OrbitControls、轨道、TransformControls、变换控制器、阻尼、three.js