How can I make the NavMeshAgent travel only in straight lines?

Hi, I’m trying to make an AI in my game that will travel by jumping in straight lines toward the player. I got something working, but I can’t seem to get obstacle avoidance working while making the AI travel only in straight lines. This is what I currently have.

Currently, the agent will only occasionally move toward the target, and will often just stop moving once it gets near an obstacle.

hi, did you find the answer? i have the same problem