Adjusting angle of raycast - simple method?

I am making a simple ray-casted pathfinding for the zombies in my game. A problem I’m having is with creating a new direction for the raycast.
if (Physics.Raycast (nodeVector,transform.forward, nodeHit, 15000, RaycastLayer)){

works for putting the ray ahead.
As I understand it, direction acts almost as a local vector

But how would I move the direction to the left or right - say by 45 degrees?

I am wondering if you use the right parameters for Raycast. Note: A ray contents origin and direction.
You may take a look at the TransformDirection function.

That’s exactly (well, so far) what I was looking for. Thank you
edit: and the raycast works fine, there are several variations to it.