Search Results for

    Show / Hide Table of Contents

    NavMesh Setup

    This tutorial will explain how to do minimal setup for NavMesh navigation. As this package reuses the baking process from Unity NavMesh, all information in terms of baking applies to this package too.

    Firstly, you will need to create a NavMeshSurface. This will be the walkable surface area for your agents. You can easily do this by right-clicking in Unity's Hierarchy View and selecting AI > NavMesh Surface.

    Now, you need to create an agent. This again can be done by right-clicking in Unity's Hierarchy View and selecting AI > Agent Cylinder/Circle. As this menu item creates a minimal setup agent, you will need a few additional components to add. Agent NavMesh Pathing will include the agent to participate in crowd flow with a specific group, and Agent Collider will enable collision with other nearby agents. Collider is needed because crowd pathing does not guarantee agents won't overlap in all cases.

    Finally, you need to set the destination of the agent. For how to set agent destination, you can refer to another tutorial Set Destination.

    Important

    For more details, check the AI Navigation package documentation.

    In This Article
    Back to top Copyright © ProjectDawn.
    Generated by DocFX