I built a full 3D #lego brick builder using Claude 4.6.
Hasan Aboul Hasan
Открыть в X@hasan_ab_hasan1,7 тыс. подписчиков
13 814 просмотров #lego
I built a full 3D #lego brick builder using Claude 4.6.
Took 12 iterations. Runs entirely in the browser.
You pick a brick size, pick a color, and click to place. Snap-to-grid, collision detection, ghost preview, it feels like building with real bricks.
But the fun part? Hit one of the template buttons and watch it auto-build a pyramid, a rocket, a house, or an Eiffel Tower. Bricks fly in from random directions, spin through the air, and snap into place with particle bursts.
tech stack:
→ #Threejs for the full 3D scene
→ #Raycasting for click-to-place
→ Custom wedge geometry for slope bricks
→ Quadratic Bézier curves for the fly-in animations
→ #2d canvas particle system layered on top of the 3D scene
→ #InstancedMesh for the base plate studs
The product potential: this could become a real educational toy. Kids (or adults) building in the browser, sharing creations, loading custom templates. No install, no app store.
( LEGO you may like this one! )
Want to try it? Link in the first comment 👇
Комментарии
Комментарии из оригинального поста в X (Twitter)
Комментариев пока нет
