Camera bobbing in a U-shape

How would I make it so the camera when I press wasd the camera would move in a U shape?

See

And

1 Like