Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Better selection of NavMeshLink

Discussion in 'Navigation' started by batvink, Aug 9, 2021.

  1. batvink

    batvink

    Joined:
    Sep 26, 2019
    Posts:
    53
    Is there a way to better control the NavmeshLink chosen by an actor which is on a path to a destination on another Navmesh.
    In the image below, the Red and Blue cars would travel in a straight line if at all possible. For some reason the red car has decided to veer off left and choose a less appropriate link (Bold green lines are the path).

    Any ideas gratefully received!

    upload_2021-8-9_9-42-0.png
     
  2. ChrisKurhan

    ChrisKurhan

    Joined:
    Dec 28, 2015
    Posts:
    265
    What is the width you have set for each of these NavMeshLink components?
     
  3. batvink

    batvink

    Joined:
    Sep 26, 2019
    Posts:
    53
    They were set to 2 metres, I've now set them to 1 metre.

    But I've worked out the issue, it's not the links after all :confused:

    there is an obstacle on the left, with this plus the agent radius it is being forced towards the right. So it's working as designed.
     
    ChrisKurhan likes this.