How would I go about changing the AIPath script to using UNITY 2D default of xy plane?
The scanning works fine. AIPath isnt working because of the orientation of the plane and I’m not quite at the level to figure out which part of the code, does the seeking and which moves the object. I guess I’m in need of help implementing a script like AIPath and getting a better understanding of how it works or simply changing the AIPath for my needs.
More details would be helpful. Have you been able to set up scanning to work with that orientation? Is it just the AIPath that won’t work?
My suggestion would be forget about using unity2D if you need that and instead fake it using 3D and orientation manipulation. I don’t know the astar code THAT well, but it looks like it would be easier if you could avoid doing that.
The scanning works fine. AIPath isnt working because of the orientation of the plane and I’m not quite at the level to figure out which part of the code, does the seeking and which moves the object. I guess I’m in need of help implementing a script like AIPath and getting a better understanding of how it works or simply changing the AIPath for my needs.
From personal experience, my suggestion is that you get an example working normally (or look at one of the ones that come with it). Then go through the path related code and experiment to find out what works and what doesn’t (make notes for yourself outside the project). This won’t be easy, but you’ll learn a lot.
Or you could go with my idea and avoid the problem all together by using 3D and just mess with camera orientation to make it look 2D. Even on mobile you should be able to optimize it enough that it works.