How to make an object a child to another during runtime?

Try using the physics handle component.