Search Unity

Trouble modifying NavMesh

Discussion in 'Getting Started' started by DougReeder, Apr 19, 2021.

  1. DougReeder

    DougReeder

    Joined:
    Apr 19, 2021
    Posts:
    2
    I'm working through the FPS Tutorial. I've added a tree from the models, and would like it to be something the player can't walk through. I have checked the "Navigation Static" checkbox, and re-baked the NavMesh The NavMesh appears to exclude the area around the tree:
    upload_2021-4-18_23-53-1.png

    However, the player is able to walk right through the tree.

    Do I need to do something additional? Or does something else constrain the motion of the player?
     
  2. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,512
    NavMesh is for AI agent movement and will not affect the player. For that, you need colliders.
     
    DougReeder likes this.
  3. DougReeder

    DougReeder

    Joined:
    Apr 19, 2021
    Posts:
    2
    Thanks much!