control the character with the mouse

  • standard input:

image

image

  • a pawn with a collider at the root + floating movement component:

Play with the Floating Movement Component settings, flip the axis to fit your needs. Perhaps add a nicer custom curve to the Enhanced Input. You can restrict the boundaries with meshes or collision boxes.

Looks like it could work fine-ish once tweaked: