as when colliding objects when drag ‘n’ drop or gizmo forbid overlapping?
Hello and welcome,
can you be a bit more precise? Do you want to enable collisions when using Gizmos?
sorry google translate
yes collision with gizmo or collision with drag&drop
This is not supported yet BUT you can use gizmo observables to manually call the intersectmesh function
Using onDragObservable, you can then check collisions (Intersect Collisions - mesh - Babylon.js Documentation)
prohibit the imposition of objects
Something like that:
I want to do so
you can do that with simple math, make boxes 1x1x1 and clamp position to rounded values.
( old version, but that’s what i did here; PlayBricks.Io )