How to stop first person player from walking through animated door


I have a door which is animating (opening and closing) I have a first person character I walk toward the door The door close and the character walks straight through.

I understand that if they were both rigid bodies physics would correctly position them

Is there a way to parent them if they come into contact Or it is easier to add a rigid body component to the player which is activated only when they come into contact?

There is really no need to use an animated model for doors. Move the center of the Y-axis,on the door model, far right/left and rotate the model around it from the script.