The movement of the character when you rotate the door

How to [fix the problem][4] with the position of the character when the door opens? It is necessary that the character smoothly moved relative to the opening door.