I’ve been trying to work on an ‘advanced ai’ that utilizes the pathfinding service. The basic principles being that the AI can detect enemy threat and calculate another path to reach it’s target.
At the moment the AI is doing decently, it can detect enemy threat and calculate another route, but in order to do so I need to setup huge collidable walls actively to block the threatened (and previously calculated) path.
I hoped that the pathfinding service would recognise non-collidable walls as obstacles, but it’d seem not, and as far as I know, there’s currently no way you can tell the pathfinder that a certain path has already been tried.
Could some sort of feature be implemented into the pathfinding service to, perhaps give an identifier of some type, or perhaps the ability to search for multiple paths when ComputeRaw/SmoothPathAsync is called?
For example:
paths = ComputeRawPathAsync(Vector3 Start, Vector3 Finish, float MaxDistance, float NumberOfPaths)
‘paths’ would be a table of paths, of which contain the current path properties/functions etc
`
If this doesn’t make much sense, please let me know, it’s my first time writing a topic here.
Any help would be appreciated.
-wing