- Home /
How to use 2D pathfinding with vector 2
I've seen people use unity's pathfinding with 2D stuff like box coliders, but from what I understand is that it has to be top down using the x and z axis. My game is from a top down perspective, but it uses the x and y axis. It's not a huge deal to rotate my game and change all my vector scripts, but I really want to continue using vector2 in my code as apposed to vector3 for the 2D stuff as it is my understanding that vector2 only takes x and y.
Is there any way I could get unity's built in pathfinding utilities to work on the x y axis? or maybe use vector2 as x and z? any advice would be great
Comment