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

If you set a gameobject to a navmeshagent's destination, what exactly is the destination.

Discussion in 'Navigation' started by GregIven, Aug 4, 2016.

  1. GregIven

    GregIven

    Joined:
    Oct 4, 2015
    Posts:
    7
    I was generally curious about how the navmeshagent works. Currently it is the best option for 3rd person point and click movement/attack systems. When you set a destination that is a game object(collider), how does the agent calculate a path complete. Does this rely on the two capsule colliders colliding, two navmeshagent collider colliding, or taking the position of the capsule collider of the gameObject set to destination.

    Right now I am having some issues with two of my navmeshagents, the player GO is not always reaching the destination, even though it is colliding withe the enemy GO. I don't know if this is a bug, or maybe there is some more in-depth explanation of how the system works.

    Thanks for the help!