Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

[SOLVED] NavMesh.Raycast() catches vertice, thought was catching tile edge :P

Discussion in 'AI & Navigation Previews' started by Deleted User, Nov 11, 2016.

  1. Deleted User

    Deleted User

    Guest

    EDIT: my mistake, its NavMesh.Raycast not NavMesh.FindClosestEdge()

    seems like NavMesh.Raycast() finds NavMeshSurface Tile Edges??, can it not?

    is it possible for NavMesh.Raycast() to NOT detect tile edges??
    or is that not what is happening?
    and instead the NavMesh iam using has like a microscopic edge at the problem vertice?

    i want the green path in 2nd image, not the red path,
    NavMesh.Raycast() seems to be detecting that white tile edge line as an edge
    or is it a microscopic edge at the vertice?

    This is my navmesh (graphical assets hidden cause iam a nerd :p lol )
    it gets that vertice on the bottom .. or the white line?


    and this is the erroneous behavior.. i want green path, not red path
     
    Last edited by a moderator: Nov 11, 2016
  2. Deleted User

    Deleted User

    Guest

    or durrr i can NavMesh.Raycast() from an offset position (instead of 0,0 of the Agent)

    imma try and see if it still messes up

    LOL yeah the raycast was catching the vertice not the white line
    SOLVED!! :p


    .. thought was the new white tile edge thing, and out of my control, guess not :p
    Cheers!
     
    Last edited by a moderator: Nov 11, 2016
unityunity