Search Unity

Is there any way to modify a path manually?

Discussion in 'Navigation' started by DejaMooGames, Jul 22, 2022.

  1. DejaMooGames

    DejaMooGames

    Joined:
    Apr 1, 2019
    Posts:
    108
    I am want to take finer control of the shape of my Ai's paths but I see absolutely no way to modify a generated path or construct a new one with my own corners. Does anyone know of a work around that I am not seeing?
     
  2. Inxentas

    Inxentas

    Joined:
    Jan 15, 2020
    Posts:
    278
    One way to do it (albeit a cheesy one, perhaps) is to just create your own node system... and use the NavMesh logic to move some agent along the path by feeding it the first node. Once close enough to the first node, it picks the second node and generates a path, and so on. I used this idea once for a patrol route AI.