- Home /
How would you make colliders and rigidbodies follow your animation?
I had a quick Google but couldn't find anything. I would like it so when the animation starts the rigidbody and colliders would follow the animated legs.
Thanks in advance
Answer by Mmmpies · Feb 10, 2015 at 05:45 PM
Both sit as child objects of you character (s) so follow the chatacters transform. You shouldnt have to do anything.
So I should put the colliders on the individual objects ins$$anonymous$$d of the parent (the parent it the whole model and the childs are the individual bits)
Depends on how you want it setup really, Unity is pretty open but if you want to detect a child being collided with and know which child then putting a collider on the child is perfectly acceptable.
As is expanding out the parents collider to cover all child objects.
Really it's up to you and how you want the game to react.
You know I reread this, if you just have a single character then you just Add Component -> rigidbody and say you want a mesh collider Add Component -> $$anonymous$$esh Collider.
These are considered Components of the character, the term child is also used hence the GetComponentInChildren. Child is kind of anything under the main character or GameObject.
So I'm not sure my last comment was actually what you were after. Or let's say, as you un-accepted, the answer I guess it probably wasn't!
Now these legs, are they part of the character if so a $$anonymous$$esh collider would probably be what you're after, if separate GameObjects I think we need more information about it to advise.
Your answer
![](https://koobas.hobune.stream/wayback/20220613182955im_/https://answers.unity.com/themes/thub/images/avi.jpg)