Search Unity

How to make 2d top down ai?

Discussion in 'Navigation' started by Pepsidog, Aug 14, 2019.

  1. Pepsidog

    Pepsidog

    Joined:
    Apr 13, 2017
    Posts:
    28
    I am wanting to create a topdown ai for a 2D project, but I can't find any tutorials. Standard pathfinding won't work since it's exclusively for 3D.
     
  2. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    491
    I don't see why pathfinding won't work? Unity's 2D worlds are basically 3D worlds where one axis of movement isn't used. Hence why sprites are actually flat 3D meshes with a texture and you can change between 2D and 3D mode in the scene viewer, and have perspective in your 2D games if you toggle the camera.
     
  3. vhman

    vhman

    Joined:
    Aug 13, 2018
    Posts:
    359