Moving an object along its forward rotation (3D)

Godot Version

4.0

I am trying to move a rotated button backward using its direction as a basis to move it along. I have done some research and found some potential solutions uses the basis of the rotational transform but every utilization fell flat and did not work.

I would appreciate help with this, although if I cant get anywhere I will likely use find a brute force solution.

myObject.global_basis.z * someDistance

or

Record the unpressed global_position, then when pressed, calculate the vector between the pressed global_position and the unpressed global_position. This will give you the direction and distance for moving the button backward.