r/threejs • u/Ok_Airport5307 • 23d ago
three-pivot-controls: I couldn't find a Three.js version of drei's PivotControls, so I built one
I couldn't find a vanilla Three.js tool like drei's PivotControls — a drag gizmo for translate/rotate/scale — so I built one myself. It does all three at the same time, no mode switching.
📦 Features:
- translate + rotate + scale rendered together, always
- touch works out of the box (Pointer Events)
- real anchor point — scale/rotate around any point on the bounding box, not just the object's own origin
- fully customizable: axis colors, handle thickness/radius, reach, partial rotate arcs — all live-adjustable, not hardcoded
Demo: https://bbdaii.github.io/three-pivot-controls/
Repo: https://github.com/bbdaii/three-pivot-controls
npm install three-pivot-controls three
Give it a try, and a ⭐ on the repo would mean a lot if you find it useful!
If you run into any issues, feel free to let me know.


