Moving Objects with DOM Mouse Events

This example shows how you can program basic 3D interactions, using a few lines of HTML and javascript code.
In this case, a simple, custom dragging functionality has been implemented. Objects can be dragged around with the mouse, and the dragging code supports snapping object positions to the grid.

Snap to grid