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

Should I Use A NavMeshAgent For Walking Enemies

Discussion in 'Navigation' started by EternalAmbiguity, Mar 22, 2018.

  1. EternalAmbiguity

    EternalAmbiguity

    Joined:
    Dec 27, 2014
    Posts:
    3,144
    So I've implemented some flying enemies in my game, and felt no need to use NavMeshAgents. The objects are just moving through empty space, and even if there are obstacles and such a NavMeshAgent doesn't exactly work with a 3D space.

    But I'm planning some ground-based enemies as well. The only way I can think of to keep the enemies on the ground surface, and dynamically avoiding obstacles, is a NavMeshAgent.

    Is this correct? Or is there another way to do this? I'd prefer as little overhead as possible, that's why I'm wondering if I can avoid NavMeshAgents.
     
  2. DwinTeimlon

    DwinTeimlon

    Joined:
    Feb 25, 2016
    Posts:
    300
    You don't need to use them if you implement your steering behaviours (path following, obstacle and agent avoidance, etc.) yourself.
     
    EternalAmbiguity likes this.