Animation of my door is getting absolute rotation, how to get relative?


I have animated a door in Unity, made two animations, one to open and another to close, it worked really fine. But when I duplicated the door and tried to use it in another place, it didnt worked, because it use the absolute rotation of the previous door, instead it open 90 degree it open to rotation 270 which only work of the position of the first door.

How is the right/easiest way to work with animations in Unity, so i can reuse my objects and animations?

Make sure the object rotating isn't the root object of the animation. You'll want to rotate a child under it, so it's relative to the parent.

Anything you change on the animation's root will be in world space