The player is passing through a wall during an animation

When I am trying to rotate the world using an animation, there’s a problem that the player is passing through the first wall during the rotation and stops at the second wall.

I have tried to play with the colliders and with no success, any suggestion or help will be appreciated.

I am attaching a short video that will illustrate the problem. I have used “Time.timeScale = 0.1f” in the video to better illustrate the problem.

Make sure that your world has a kinematic rigidbody that rotates, also make sure that your animator component update mode is set to animate on physics