How to solve the situation that the moving position is blocked by the wall

When I set the Player position from A to B, it was blocked by the wall, so I could only move to the red C, but not B correctly. how to solve it?


Answers