Learn how to configure drag controls to snap an object to a grid in three.js.
Timestamps:
00:00 Intro/demo
00:25 Import DragControls.js into three.js
00:34 Create GridHelper three.js
01:14 Create ground and cube mesh objects
01:21 Create dragControls and add event listeners three.js
01:50 Configure DragControls.js to snap objects on grid
Resources:
DragControls.js @ GitHub:
https://raw.githubusercontent.com/mrd...