Open/Close Door Animation disables collider

I have a script to open and close doors based on animations. The door opens and closes fine but when I walk up to the door and either animation is playing, the collider I have set on the door to block the player from going through is rendered disabled even though if I look at it in the hierarchy it is still enabled and active.

Am I doing something wrong? Does the animation system within unity effect a collider if it is on the same object as the animation itself?

your door is a kinematic rigodbody
kinematic rigidbodies need to be ran in the physics loop (fixed update)
to collide.

animation.animatephysics = true;

animation will run during physics (fixed update) loop.

mark as answered.