Camera like the game (Traffic Racer)

Camera like the game (Traffic Racer)

Only in the forward direction

Please help.

Please help me.
My problem is not solved.

Please help me.
My problem is not solved.

https://forums.unrealengine.com/development-discussion/rendering/121041-camera-follow-on-y-axis-but-not-x
Here’s the solution