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

and here is the hierarchy