Search Unity

Get PolygonID position from NavMeshQuery

Discussion in 'Scripting' started by Luxgile, Mar 13, 2019.

  1. Luxgile

    Luxgile

    Joined:
    Nov 27, 2016
    Posts:
    16
    So I've found the NavMeshQuery stuff in the "Experimental" namespace and was trying to do some stuff with it (pathfinding with jobs & ecs).

    Everything is okay until i use the GetPathResults() and it returns a NativeSlice made of PolygonIDs which i don't know what to do with them. The closest i've was using PolygonLocalToWorldMatrix() but the matrix is from the surface where the polygon is on, not the polygon itself, so i can't do anything with it.

    I don't know if i missing something or maybe (because it's still on experimental) there is no API yet to get the position of the PolygonID. Does anyone know how to resolve this?
     
    FernandoLG and Gamble111 like this.