Search Unity

Question Nav Mesh Jump/Drop Problem

Discussion in 'Navigation' started by Sandesh321, Sep 5, 2021.

  1. Sandesh321

    Sandesh321

    Joined:
    May 2, 2021
    Posts:
    55
    Hey there I'm trying to create an enemy that follows the player by using nav mesh component. I also need the enemy to be able to jump across and jump down objects. For some reason unity isn't generating any drop or jump areas even though the jump and drop distance is greater than the area between the 2 objects. Can anyone please help?
     
  2. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,743
    You need to download and use: NavMeshComponents-master. Heres the function, and if doing this by code, consult the API or docs, and dont forget to check NavMesh settings:
    • NavMeshSurface – for building and enabling a NavMesh surface for one agent type.
    • NavMeshModifier – affects the NavMesh generation of NavMesh area types, based on the transform hierarchy.
    • NavMeshModifierVolume – affects the NavMesh generation of NavMesh area types, based on volume.
    • NavMeshLink – connects same or different NavMesh surfaces for one agent type.
     
  3. ChrisKurhan

    ChrisKurhan

    Joined:
    Dec 28, 2015
    Posts:
    268
    Might I recommend

    which explains how to use a NavMeshLink component to do exactly what you are asking about.