Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Procedurally navmesh for a 2d game

Discussion in 'AI & Navigation Previews' started by print_helloworld, Feb 15, 2017.

  1. print_helloworld


    Nov 14, 2016
    Haven't seen any threads here on how this could be used for 2d games since i was researching before I started on my own navmesh for 2d. So I decided to implement a system where any object in 2d space, can have a link to a 3d navmesh agent on a navmesh surface that matches the game world. All using the new experimental stuff.

    So this
    Became this, by also procedurally making a mesh.

    And this way, all of my enemies can now walk anywhere, but not cross rooms. And this also lets me add companions that follow the player around!
    This stuff is awesome btw, keep this up. Hope to see some nice stuff out of this.
  2. dCalle


    Dec 16, 2013
    looks great, I thought about evading-algorithms when I realized I couldn't just use navmesh hands on. (in space with a lot of room) turns out just having a 2d navmesh would be quite a time and nerve saver (because I use movement on the x/y plane not the x/z... bummer)