- Home /
Question by
neatgadgets · Jul 27, 2019 at 08:33 AM ·
collisionparenting
Parenting ethans hand to a gameobject
I have parented ethans hand to an object, a spray can. It seems to make ethan crouch and then slide. The object is picked up when ethan collides with it
parenting code
other.gameObject.transform.parent = hand.transform;
other.transform.position = hand.transform.position;
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612205601im_/https://answers.unity.com/themes/thub/images/avi.jpg)