Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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 Moderator

    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.