Search Unity

What is a dynamic nav mesh?

Discussion in 'Getting Started' started by smelchers, Apr 12, 2015.

  1. smelchers

    smelchers

    Joined:
    Feb 22, 2015
    Posts:
    22
    I have read this in a forum where people talked about creating a star craft like game.
    Can somebody tell me what this is?
     
  2. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    If you use navmesh obstacles, your ai will path around new structures. That's a way in which nav meshes can change dynamically. Unfortunately, Unity3D does not have a way to bake nav meshes dynamically if that's what you meant. If you need navmesh functionality for procedural content, it would be best to get a path finding system using something like A*.
     
  3. Cherno

    Cherno

    Joined:
    Apr 7, 2013
    Posts:
    515
    Aron Granberg's Astar Pathfinding Project (available on the Asset Store) lets you assign a mesh to a NavMesh graph at runtime, scan at runtime, and use special Graph Update Objects to make nodes unwalkable in an area defined by a polygon. The Pro version even supports local avoidance.
     
  4. smelchers

    smelchers

    Joined:
    Feb 22, 2015
    Posts:
    22
    Sorry, I don't understand that yet.
    Can you start simpler?

    Thank you.
    Susy
     
  5. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
  6. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    @hippocoder Can you move an object that has a navmesh on it without breaking it? It'd be nice if you could have prefabs with navigable areas baked on them.