How can I make sure that an object does not fly out of another object?

I made it so that it was possible to capture objects and move them, but the problem is that the surface on which the objects are standing is not very smooth and so that it does not seem that these objects are floating in the air, I lower them into the texture of an uneven surface and because the object that I want to capture has physics enabled, it flies out of this texture like a rocket, but I want it to stay in place. How do I do that?

Disable physics and Attach Component to Component for as long as you move the object. Would that work for you? Or is this like a hollow box / bowl inside which you want a simulating mesh to rattle about?


Besides that, you may need to add more details, rephrase or demonstrate visually:

I lower them into the texture of an uneven surface

Not sure how to interpret that. I reckon you forced a physically simulating mesh into another geometry and the depenetration mechanism kicks in and ejects it; that’s to be expected.