I have a double door that I want to trigger the opening and closing animation with a trigger.
So there is one mesh for the door frame, one mesh for the left door and one for the right door. I’ve created an Animation Controller and added it to both the doors. I animate one of the doors to rotate to -95 deg, and the other to 95 deg in a separate Animation Clip, so I have two animation clips in the same Animation Controller.
I then use a Bool as a condition for the transition between an empty state and my open animations. I followed this tutorial:
It works for a singe door, but for my double door I can’t get both clips to play, only one of the clips plays, so that only one of the doors opens, or the same clip plays on both doors, so both swings open, but one goes in the wrong direction.
So how do I animate something like this, that has multiple objects that are part of the same animation?