Make camera only move forward and not left and right in UE5

Add a camera component to your character from the Components window on the top left like this:

Since you’re on the third person template, the third person character BP would already have a spring arm (camera boom) and a camera component (follow camera) so you can also unparent the spring arm from it by dragging the camera component over it.

Then detach it after Begin Play like this:

And set up Event Tick like this:

(Note that the orientation might be different in your case)

The default value of my variable named “Camera Relative Location” is the camera component’s default location which you can access from the viewport by navigating to the Details window while having the component selected.

And here’s the result:

Hope this helps! :innocent:

1 Like