Animation clip of object does not work as intended after being childed

Object A has a animation clip of it moving from point A to point B in a curve. When object A is moved to be the child of another object, the clip no longer work properly as the animation clip transform values are based on world coordinates but the transform values of Object A is now relative to its parent object.

Is there a workaround to resolve this? Perhaps to have the animation clip transform values updated (automatically) to be relative to the parent object?

Thank you!

I think root motions would be the way to go.

Another way is to create a container object for whatever you are animating, and add the Animator/Animation component into that. The animation clip itself would animate the child object. Hierarchy could be like this:

  • Container (has the animation)

  • Actor (the animated object)