Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

NavMeshSurface

Discussion in 'Navigation' started by rob_vld, Feb 27, 2022.

  1. rob_vld

    rob_vld

    Joined:
    Jul 9, 2013
    Posts:
    190
    After having watched Unite 2017 on the new Navmesh implementations i am stuck with a question.

    Assume you want to build a RTS type game with an area that is too large to bake but units need to be able to move from one side of the map to another.


    When you create a NavMeshSurface you are creating it for an "Agent Type" which suggest to me as a group.

    Now, when you select "Collect Objects" as "Volume", i was expecting that when you bake the surface, it would go through all Agents of that type and bake an area around them, then runtime-rebake that entire surface when one of those units would have crossed a certain distance...
    in the video however they are moving the surface to accommodate a single agent (a player) position...

    Should you volume bake an area per unit and then combine navmesh area data or ?

    What am i missing here?

    Thanks

    edit: i figured it out, its really simple and quite amazing to be honest, well done unity team!
     
    Last edited: Feb 28, 2022