How to rotate or change axes that a pawn moves on

I am doing a marble rolling game, i want to inplement directional gravity, which works by getting the rotation of an arrow attached to the ball and adding force in its direction as shown below, creating fake gravity


that part of the code works.
now i need a way to change the camera rotation restrictions and Axes of the movement in a way that will make the arrow the “ground direction” so w is forwards according to it and so on.
here is the code for movement

here is the code for camera input
Zrzut ekranu 2024-06-28 180735
and here is the hierarchy