Drag object to a box collider

Hello, I am creating a game that deals with the assembly of a computer. The fact is that I want to drag an object to a destination, in this case a box collider. Once dragged, the object is positioned where the box collider, and stay there. Thanks

https://pbs.twimg.com/media/D46HO2iWwAMex1k.jpg:large

Hi,

I was just wondering what type of game you’re working on (first person, fixed camera, etc), as I’d be happy to adjust my solution to what you need, but…

Couldn’t you just shoot a ray from the mouse, and lerp the objects position to where it hits, click and drag style?

I’d be happy to add code if you need.

Regards,

Miggi124