Search Unity

Question Cannot get NavMeshObstacle to work

Discussion in 'Navigation' started by te_headfirst, Jan 4, 2024.

  1. te_headfirst

    te_headfirst

    Joined:
    Aug 1, 2023
    Posts:
    18
    Hi,
    I tried a simple scenario with a Plane, a NavMeshSurface, and a Cube that I added NavMeshObstacle to.
    Without the NavMeshObstacle the baking of the NavMesh works as expected and the Cube is non walkable.
    (see screenshot)

    When I add the NavMeshObstacle and bake the NavMesh the Cube is ignored and everything can pass through it. (see other screenshot)
    I thought that NavMeshObstacle was exactly the component needed when creating impassable areas but apparently I misunderstand something.
     

    Attached Files: