Search Unity

Detect offmesh link in a path?

Discussion in 'Navigation' started by Nicolas-Liatti, Jun 1, 2016.

  1. Nicolas-Liatti

    Nicolas-Liatti

    Joined:
    Jun 19, 2013
    Posts:
    89
    Hi all,

    I would need to detect if a path is going to use an offmesh link. How can I do this?

    The only way I see so far is to keep all the transforms Starts/Ends of the offmesh links in an array and compare it with the corners of the path... I find it really hacky...

    Is there any other way to detect if a path is going to use an offmesh link?

    Thanks for your help :)
    Nicolas
     
    TobyWu likes this.
  2. jakub-gemrot

    jakub-gemrot

    Joined:
    Nov 1, 2014
    Posts:
    16
    TobyWu likes this.