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. Dismiss Notice

Bug Generated NavMesh considers NavMesh agents and Rigidbodies as obstacles

Discussion in 'AI & Navigation Previews' started by joseph114591452, Apr 30, 2023.

  1. joseph114591452

    joseph114591452

    Joined:
    Mar 14, 2020
    Posts:
    24
    I have a plane with a NavMesh Surface component and on this plane I've placed a few NavMesh agents and Rigidbodies.

    When I generate the Navmesh, the agents and the rigidbodies are considered obstacles.

    This is on:
    Unity: 2022.2.16f
    AI Navigation: com.unity.ai.navigation@1.1.3

    Here's a picture of the generated navmesh:
    upload_2023-4-29_19-46-54.png
     
  2. joseph114591452

    joseph114591452

    Joined:
    Mar 14, 2020
    Posts:
    24
    I figured it out, I had to modify the Object Collection settings in the NavMeshSurface component.
    1. upload_2023-4-29_22-8-0.png