ackvonhuelioLvl 41
So im making an enemy AI system, and I wanna know how to get an enemy to efficiently pathfind from point A to point B around several polygons with hopefully minimal lag. i've never dabbled in pathfinding before so I don't know much about where to start, but I have some ideas.
anyways there's some smart guys here like letti, adam, and varrience so if any of you could show me how to do this or even recommend a good tutorial i'd greatly appreciate it.
anyways the functions I have at my disposal are:
isInside(); - returns if a point is inside a given polygon(boolean)
toRenderAt(); - returns all the polygons to render at a given point(part of extremely optimized and fast chunk system)
fatRenderAt(); - toRenderAt but with an extended radius, for things like players which can take up multiple chunks
nearestPointOnLine(); - gives the nearest point on a line to another point
clearPath(); - returns if a straight line between two points runs through any polygons(boolean)
so yeah if you could show me more or less how to get my AIs to pathfind it would be greatly appreciated, just give me the gist of how it works and i'll fill in all the little stuff
Also before you yell at me just to find an online tutorial IVE TRIED but none of them are what i'm looking for