2D game achieving magnetic behaviour

I am making a 2D platformer game in which you have to fly a copter, pick up a bomb, and place it on a platform, One thing i cannot figure out is how to stick the bomb to the copter, i want it to stick to the base of the copter whenever the copter’s base enters bomb’s trigger, i tried making the bomb a child of the copter(through script), bit that didn’t work. any help?

I assume both your helicopter and the bomb are using Unity physics.

In that case, if you want to connect two objects that both have rigidbodies, you need to use something called a physics joint. In your case specifically, you’re looking for a fixed joint. If you use a fixed joint to connect the bomb to your helicopter, your bomb should move along perfectly fine.

If not, you should post your code and describe exactly what goes wrong. “It doesn’t work” isn’t useful for people trying to help you.