Character collider_when animating door

Hi can anybody help?

I have a door that open and closes when character approaches door.
But I have noticed if the door is animating the character can walk through the door.
Is there a way of making the door push the character back if it is shutting and stop character from going through the door
thanks

If you are rotating the rigidbody attached to the door then this should happen automatically. Check the position of the doors rigidbody at run-time, during animation, then check if the rigidbody collides with your character.