How to drag an object on a grid

:slight_smile: You can make little playground with one window and one wall, and turn off mouse/drag.

var wleft = anything;
var wtop = anything;
var wright = anything;
var wbottom = anything;

meshbuild.

We don’t need mouse for playground testing scene. Simple playground. Wall, windowbox, do the csg… see what happens. If you can re-create same problem… save playground, and send us url it gives you after save.

You can do it. Remove all extra “crap” from your code… make playground. c’mon Zhang, we cheer for you. :slight_smile: We get more smart helpers… if we have playground that shows problem.

Oh, and if you are TRYING to do CSG WHILE dragging is moving… don’t do that. :slight_smile: At least wait until drag done, THEN CSG-process. onPointerUp() (you probably know all this already)