I transferred it to my project in a similar way. If you put the camera right on the ground and try to move, you will also see that it doesn’t go back and forth. However, where the camera is looking should not be very important, if it wants to go forward, looking at the ground should not reduce its speed, etc.