How do I move objects relative to the player position?

So it’s a infinite hallway?

So I have a triangle hallway where the back of the hallway is more narrow than the front. Now the player will be standing at the back of the hallway but I can’t determine where along the x axis the player will be standing. Is it possible to move the walls of this hallway so that the player will always be standing in the center?

No it’s just a normal hallway with normal walls but I want to move these walls so that the player is always in the center of the hallway. So I guess the walls would be a certain distance away from the player.