Make child and destroy child

Is is possible (I am sure) to tell a GO is now parent of the FPC and will then follow it, then destroy the relationship.

Ex: The FPC will carrying a box.

Thanks

Ok couple of things, what is “FPC” and I guess “GO” is GameObject.

it would help a lot in the forums if you can use the whole word, I had problems guessing “GO” but still FPC, no idea:P

and yes, you can make an object parent from another like this

obj1.transform.parent = obj2.transform;

and to destroy the relationship, you just do this:

obj1.transform.parent = null;

hope it helps :wink:

FPC= first person controller in the standart assets. :wink:

ok thanks :stuck_out_tongue:

I think I do understand you now :stuck_out_tongue:

Yes its possible, just make the object kinematic and the physics should not affect the object, with that done, you can now move your object freely and it will follow your parent :stuck_out_tongue:

hope it helps! :wink: