Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    28
    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:
    28
    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