check if the hit object is the cube you mentioned, using it's tag or name.
transform the direction of the sphere to the cube's transform.forward (if in the picture the forward is the direction of the second arrow. Else change your cube for that to be true).