Search Unity

Question Need to know if path is possible

Discussion in 'Navigation' started by r31o, Feb 16, 2022.

  1. r31o

    r31o

    Joined:
    Jul 29, 2021
    Posts:
    460
    Hi, I got a basic enemy AI that when it losses contact with the player or he is too far it walks to it untill he can see the player using setDestination.
    It works good, but sometimes the player is in a platform that is not connected to the platform the agent is and he tries to get to the other platform, but he gets stuck on a edge.
    I need a way to check first if there is a way to get to the player, how can I do it?
     
  2. TheAmazingB74

    TheAmazingB74

    Joined:
    Aug 28, 2015
    Posts:
    14
  3. r31o

    r31o

    Joined:
    Jul 29, 2021
    Posts:
    460
  4. TheAmazingB74

    TheAmazingB74

    Joined:
    Aug 28, 2015
    Posts:
    14
     
  5. TheAmazingB74

    TheAmazingB74

    Joined:
    Aug 28, 2015
    Posts:
    14