- Home /
Can I change the pivot point of animated character, not a single sprite?
Hey guys! I've been banging my head against a wall and checked SO many posts for an answer and came up empty so I'll just ask:
I have a 2D game character that I need to pivot in its center when it moves left and right. Unfortunately, its pivot point is off center, leading to a very jerky movement. The character is animated using the dope sheet and is made up of several different sprites (one for each arm, leg, body, and head), all parented to a game object that has my movement script, animator, etc. Every answer regarding changing sprite pivot points seems to apply only to single-sprite animations (unless I'm totally misunderstanding), and I can't alter the pivot point of this game object because it doesn't have a sprite renderer, as it is the parent object of all the sprites. How do I change the pivot point in this case? I must be overcomplicating this, right? Any help is greatly appreciated.
If you are rotating the parent gameobject, then the pivot is the parent. If that's the case here's how to fix it: Unparent all the child gameobjects(body parts). Place the gameobject, which used to be parent, in the center of the character. Set the body parts of the character to be child of the gameobject in the center
Answer by Lilius · Feb 25, 2018 at 04:37 PM
If it is the parent object, only a container to child objects that have sprite renderers, then think it this way: Your parent objects pivot point is in the center, your child objects just are badly aligned. When creating this kind of animations, I would suggest you use your body as parent, then your limbs as child of the body etc. Then adjust individual sprites pivot points if needed.
So, as frustrating as it was to redo the animations based on the true pivot point, that does seem to be the best way to do it. For anyone wrestling with this in the future, it's a mistake you won't make twice! You can bet on it! XD
Your answer
![](https://koobas.hobune.stream/wayback/20220612153414im_/https://answers.unity.com/themes/thub/images/avi.jpg)