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

2D NavMesh Plus - Components and Extensions System

Discussion in '2D' started by vhman, May 11, 2022.

  1. vhman

    vhman

    Joined:
    Aug 13, 2018
    Posts:
    333
    yes, this is undocumented Unity feature, and its not implemented yet.
     
  2. jecky111

    jecky111

    Joined:
    Jun 11, 2016
    Posts:
    17
    it would be nice to update the component names in the pdf documentation, would have saved me a few hours. anyway great asset, thanks!
     
  3. vhman

    vhman

    Joined:
    Aug 13, 2018
    Posts:
    333
    Hello All,

    Added NavMeshLink sample into Demo project with "infinity runner" scene, where navmeshes are dynamically placed at runtime.

    Special thanks to LlamAcademy for repo with code samples on navmesh links.
     
  4. CrAzYpotpie

    CrAzYpotpie

    Joined:
    Sep 24, 2020
    Posts:
    11
    Been using this since around February for my sidescroller platforming game, and it has been invaluable to me. Thank you for sharing it with us. I had designed an AI system that was purely based on environment for my physical "motor" based NPC's (grounded NPCs that can walk, jump, etc,) and when it came time to implement a system for floating/flying NPC's that could navigate the environment, I started to look into Unity's existing systems to handle this, and was amazed that their navigation package was 3D only. That research led me to your package, and saved me a large amount of time.

    The only negatives I can say about this are all related to Unity's navigation package itself (mostly due to it not being designed with 2D in mind,) and the hacky "-89.98" x rotation which can sometimes result in the AI's being offset a tiny bit from 0 on the Z axis, but luckily I can work around that.

    Thank you again!
     
    vhman likes this.
  5. vhman

    vhman

    Joined:
    Aug 13, 2018
    Posts:
    333
    That is industry standard to not have decent 2d navigation support out of box. I've looked into few other engines)
     
  6. andreasambrusg

    andreasambrusg

    Joined:
    Sep 1, 2023
    Posts:
    1
    Hello guys i need some help with navMesh....

    ich made everything like in the tutorial described but when baking it says Sources 0 eventhough i have a obstacle
    upload_2023-10-12_1-38-5.png

    Further more i create my enemies at random locations on the screen (wave game like) but then i get the error that they are not placed on a navmesh this is the nav mesh agent script in bolt. This script has every enemie that spawns:
    upload_2023-10-12_1-41-25.png
    upload_2023-10-12_1-39-48.png

    btw im on 2021.2.13f1