Search Unity

Not walkable area on terrain (NavMesh)

Discussion in 'Navigation' started by WInDArt, Sep 5, 2019.

  1. WInDArt

    WInDArt

    Joined:
    Jan 31, 2014
    Posts:
    9
    Hello. I have some trubles with terrain and notWalkable areas.
    I have box with navigation area notWalkable, but it work not correct. Inside the cube there is a walkable zone. How can I completely block the passage of any area on tarrain?
    Thank you.
     

    Attached Files:

    • 1.PNG
      1.PNG
      File size:
      1.5 MB
      Views:
      667
    • 2.PNG
      2.PNG
      File size:
      1.9 MB
      Views:
      655
    • 3.PNG
      3.PNG
      File size:
      1.2 MB
      Views:
      627
  2. WInDArt

    WInDArt

    Joined:
    Jan 31, 2014
    Posts:
    9
    Can anyone help me?
     
  3. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    491
    That's simply a feature, normally it shouldn't be anything to worry about. If the navmesh inside the blocking volume is completely cut off from the rest of your navmesh, your agents simply can't reach it.
     
  4. WInDArt

    WInDArt

    Joined:
    Jan 31, 2014
    Posts:
    9
    Yes, but i can click on this place. The fact is that if you simply click on the blocked positions, the character runs up to the nearest suitable place. But when I hold the left button of mouse, the character begins to pull and shake. I thought it would help me get rid of such problems.
    I have problem like this - https://github.com/Unity-Technologies/NavMeshComponents/issues/114

    How can I make a move while holding the left mouse button, for example like in Diablo 3?
     
  5. Nanior

    Nanior

    Joined:
    May 4, 2019
    Posts:
    101
    What a weird problem, do you have a script on the box?