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?