- Home /
Animated Child Transform Moving Parent Transform - How to fix?
HumanoidGraphic has an animator - the position of HumanoidGraphic is used for animation - and is affecting the transform position of the parent GameObject, PlayerController. --Note: PlayerController is never used in the animation. -------- This error causes the PlayerCollider to bounce in and out of the floor, among other glitches.
How do I stop the movement of the child's transform from affecting the parent transform?
I don't know how you move your char, but here are some suggestions: try to Animate physics or set a root node in model settings - animation tab or try to bake motion to pose. Btw i do not think this is a bug, you are just doing something wrong
Answer by dalessan9 · Sep 19, 2018 at 07:00 PM
A bug report was sent to Unity w/ the following information.
1. What happened
Parent Rigidbody w/ animated child moves parent transform
2. How we can reproduce it using the example you attached
1. Create Empty GameObject(Controller), add Rigidbody to it.
2. Create another Empty GameObject(GraphicController), add animator to it.
3. Create a 3d Cube and parent to the (GraphicController).
4. On (GraphicController), create animation that affects (GraphicController)'s position.
5. Go into play mode - and you will see that the (Controller) transform is affected by the (GraphicController)'s movement during the animation - ONLY - in Play Mode.
I am trying to reproduce, but how is GraphicController related to Controller? Is it a child of it? So Cube is child of GraphicController whis is child of Controller? If so, in my case parent does not move. I also tested other hierarchy setup and everything works fine