Drag and drop mesh over uneven ground

When dragging a mesh, it starts to cross the uneven surface. How to make the mesh not cross the surface, but slide smoothly over it?
I tried collisions but it didn’t work
Thanks

You could try to raycast on the uneven ground to compute the height ?