Search Unity

Trying 2d pathfinding with the A* package-- can this be done without using 3d colliders?

Discussion in 'Navigation' started by AidanofVT, May 23, 2020.

  1. AidanofVT

    AidanofVT

    Joined:
    Nov 10, 2019
    Posts:
    104
    Just what it says on the can: everybody speaks about the A* project like it is the solution to 2d pathfinding, yet all the examples I find use 3d colliders. This seems... intuitively wrong to me. Am I missing something?
     
  2. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,758
    Short answer...no. You have to have colliders on any object (player character, npc, animals, etc.). Need colliders so character knows its on the ground/terrain, for detecting walls (obstacles), other AI, etc.